
#pragma warning disable 162

namespace PeDALS.Apps.NM.GS.Orchestrations
{

    [System.SerializableAttribute]
    sealed public class __PeDALS_Apps_NM_GS_Schema_GovSpeech__ : Microsoft.XLANGs.Core.XSDPart
    {
        private static PeDALS.Apps.NM.GS.Schema.GovSpeech _schema = new PeDALS.Apps.NM.GS.Schema.GovSpeech();

        public __PeDALS_Apps_NM_GS_Schema_GovSpeech__(Microsoft.XLANGs.Core.XMessage msg, string name, int index) : base(msg, name, index) { }

        
        #region part reflection support
        public static Microsoft.XLANGs.BaseTypes.SchemaBase PartSchema { get { return (Microsoft.XLANGs.BaseTypes.SchemaBase)_schema; } }
        #endregion // part reflection support
    }

    [Microsoft.XLANGs.BaseTypes.MessageTypeAttribute(
        Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal,
        Microsoft.XLANGs.BaseTypes.EXLangSMessageInfo.eNone,
        "",
        new System.Type[]{
            typeof(PeDALS.Apps.NM.GS.Schema.GovSpeech)
        },
        new string[]{
            "Body"
        },
        new System.Type[]{
            typeof(__PeDALS_Apps_NM_GS_Schema_GovSpeech__)
        },
        0,
        @"GovSpeech"
    )]
    [System.SerializableAttribute]
    sealed internal class DescMetaItemMessageType : Microsoft.BizTalk.XLANGs.BTXEngine.BTXMessage
    {
        public __PeDALS_Apps_NM_GS_Schema_GovSpeech__ Body;

        private void __CreatePartWrappers()
        {
            Body = new __PeDALS_Apps_NM_GS_Schema_GovSpeech__(this, "Body", 0);
            this.AddPart("Body", 0, Body);
        }

        public DescMetaItemMessageType(string msgName, Microsoft.XLANGs.Core.Context ctx) : base(msgName, ctx)
        {
            __CreatePartWrappers();
        }
    }

    [System.SerializableAttribute]
    sealed public class __PeDALS_Apps_NM_GS_Schema_GovSpeechRoot__ : Microsoft.XLANGs.Core.XSDPart
    {
        private static PeDALS.Apps.NM.GS.Schema.GovSpeechRoot _schema = new PeDALS.Apps.NM.GS.Schema.GovSpeechRoot();

        public __PeDALS_Apps_NM_GS_Schema_GovSpeechRoot__(Microsoft.XLANGs.Core.XMessage msg, string name, int index) : base(msg, name, index) { }

        
        #region part reflection support
        public static Microsoft.XLANGs.BaseTypes.SchemaBase PartSchema { get { return (Microsoft.XLANGs.BaseTypes.SchemaBase)_schema; } }
        #endregion // part reflection support
    }

    [Microsoft.XLANGs.BaseTypes.MessageTypeAttribute(
        Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal,
        Microsoft.XLANGs.BaseTypes.EXLangSMessageInfo.eNone,
        "",
        new System.Type[]{
            typeof(PeDALS.Apps.NM.GS.Schema.GovSpeechRoot)
        },
        new string[]{
            "Body"
        },
        new System.Type[]{
            typeof(__PeDALS_Apps_NM_GS_Schema_GovSpeechRoot__)
        },
        0,
        @"GovSpeechRoot"
    )]
    [System.SerializableAttribute]
    sealed internal class DescMetaMessageType : Microsoft.BizTalk.XLANGs.BTXEngine.BTXMessage
    {
        public __PeDALS_Apps_NM_GS_Schema_GovSpeechRoot__ Body;

        private void __CreatePartWrappers()
        {
            Body = new __PeDALS_Apps_NM_GS_Schema_GovSpeechRoot__(this, "Body", 0);
            this.AddPart("Body", 0, Body);
        }

        public DescMetaMessageType(string msgName, Microsoft.XLANGs.Core.Context ctx) : base(msgName, ctx)
        {
            __CreatePartWrappers();
        }
    }

    [Microsoft.XLANGs.BaseTypes.PortTypeOperationAttribute(
        "ReceiveDescMeta",
        new System.Type[]{
            typeof(PeDALS.Apps.NM.GS.Orchestrations.DescMetaMessageType)
        },
        new string[]{
        }
    )]
    [Microsoft.XLANGs.BaseTypes.PortTypeAttribute(Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal, "")]
    [System.SerializableAttribute]
    sealed internal class ReceiveDescMetaPortType : Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase
    {
        public ReceiveDescMetaPortType(int portInfo, Microsoft.XLANGs.Core.IServiceProxy s)
            : base(portInfo, s)
        { }
        public ReceiveDescMetaPortType(ReceiveDescMetaPortType p)
            : base(p)
        { }

        public override Microsoft.XLANGs.Core.PortBase Clone()
        {
            ReceiveDescMetaPortType p = new ReceiveDescMetaPortType(this);
            return p;
        }

        public static readonly Microsoft.XLANGs.BaseTypes.EXLangSAccess __access = Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal;
        #region port reflection support
        static public Microsoft.XLANGs.Core.OperationInfo ReceiveDescMeta = new Microsoft.XLANGs.Core.OperationInfo
        (
            "ReceiveDescMeta",
            System.Web.Services.Description.OperationFlow.OneWay,
            typeof(ReceiveDescMetaPortType),
            typeof(DescMetaMessageType),
            null,
            new System.Type[]{},
            new string[]{}
        );
        static public System.Collections.Hashtable OperationsInformation
        {
            get
            {
                System.Collections.Hashtable h = new System.Collections.Hashtable();
                h[ "ReceiveDescMeta" ] = ReceiveDescMeta;
                return h;
            }
        }
        #endregion // port reflection support
    }
    [Microsoft.XLANGs.BaseTypes.CorrelationTypeAttribute(
        Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal,
        new string[] {
            "BTS.ReceivePortID"
        }
    )]
    sealed internal class ReceivePortIdCorrelationType : Microsoft.XLANGs.Core.CorrelationType
    {
        public static readonly Microsoft.XLANGs.BaseTypes.EXLangSAccess __access = Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal;
        private static Microsoft.XLANGs.BaseTypes.PropertyBase[] _properties = new Microsoft.XLANGs.BaseTypes.PropertyBase[] {
            new BTS.ReceivePortID()
         };
        public override Microsoft.XLANGs.BaseTypes.PropertyBase[] Properties { get { return _properties; } }
        public static Microsoft.XLANGs.BaseTypes.PropertyBase[] PropertiesList { get { return _properties; } }
    }
    //#line 1029 "C:\Programming\PeDALS\PeDALS.Apps.NM.GS\PeDALS.Apps.NM.GS.Orchestrations\GovernorSpeeches.odx"
    [Microsoft.XLANGs.BaseTypes.StaticConvoyAttribute(
        0,
        new System.Type[] { typeof(ReceivePortIdCorrelationType) }
    )]
    [Microsoft.XLANGs.BaseTypes.StaticSubscriptionAttribute(
        0, "ReceiveManifestPort", "ReceiveManifest", -1, 0, true
    )]
    [Microsoft.XLANGs.BaseTypes.StaticSubscriptionAttribute(
        1, "ReceiveMetadataPort", "ReceiveMetadata", -1, 0, true
    )]
    [Microsoft.XLANGs.BaseTypes.StaticSubscriptionAttribute(
        2, "ReceiveDescMetaPort", "ReceiveDescMeta", -1, 0, true
    )]
    [Microsoft.XLANGs.BaseTypes.ServicePortsAttribute(
        new Microsoft.XLANGs.BaseTypes.EXLangSParameter[] {
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.ePort|Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements,
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.ePort|Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements,
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.ePort|Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements,
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.ePort|Microsoft.XLANGs.BaseTypes.EXLangSParameter.eUses,
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.ePort|Microsoft.XLANGs.BaseTypes.EXLangSParameter.eUses
        },
        new System.Type[] {
            typeof(PeDALS.Orchestrations.ReceiveManifestPortType),
            typeof(PeDALS.Orchestrations.ReceiveMetadataPortType),
            typeof(PeDALS.Apps.NM.GS.Orchestrations.ReceiveDescMetaPortType),
            typeof(PeDALS.Orchestrations.SendNotificationPortType),
            typeof(PeDALS.Orchestrations.SendManifestCompletePortType)
        },
        new System.String[] {
            "ReceiveManifestPort",
            "ReceiveMetadataPort",
            "ReceiveDescMetaPort",
            "SendNotificationPort",
            "SendManifestCompletePort"
        },
        new System.Type[] {
            null,
            null,
            null,
            null,
            null
        }
    )]
    [Microsoft.XLANGs.BaseTypes.ServiceCallTreeAttribute(
        new System.Type[] {
            typeof(PeDALS.Orchestrations.GetInitialValues),
            typeof(PeDALS.Orchestrations.SplitMetadataMessage),
            typeof(PeDALS.Orchestrations.SetInitialValues),
            typeof(PeDALS.Orchestrations.InsertAIP)
        },
        new System.Type[] {
        },
        new System.Type[] {
        }
    )]
    [Microsoft.XLANGs.BaseTypes.ServiceAttribute(
        Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal,
        Microsoft.XLANGs.BaseTypes.EXLangSServiceInfo.eNone|Microsoft.XLANGs.BaseTypes.EXLangSServiceInfo.eLongRunning
    )]
    [System.SerializableAttribute]
    [Microsoft.XLANGs.BaseTypes.BPELExportableAttribute(false)]
    sealed internal class GovernorSpeeches : Microsoft.BizTalk.XLANGs.BTXEngine.BTXService
    {
        public static readonly Microsoft.XLANGs.BaseTypes.EXLangSAccess __access = Microsoft.XLANGs.BaseTypes.EXLangSAccess.eInternal;
        public static readonly bool __execable = false;
        [Microsoft.XLANGs.BaseTypes.CallCompensationAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSCallCompensationInfo.eNone,
            new System.String[] {
                "PeDALS.Orchestrations.GetInitialValues",
                "PeDALS.Orchestrations.SplitMetadataMessage",
                "PeDALS.Orchestrations.SetInitialValues",
                "PeDALS.Orchestrations.InsertAIP"
            },
            new System.String[] {
            }
        )]
        public static void __bodyProxy()
        {
        }
        private static System.Guid _serviceId = Microsoft.XLANGs.Core.HashHelper.HashServiceType(typeof(GovernorSpeeches));
        private static volatile System.Guid[] _activationSubIds;

        private static new object _lockIdentity = new object();

        public static System.Guid UUID { get { return _serviceId; } }
        public override System.Guid ServiceId { get { return UUID; } }

        protected override System.Guid[] ActivationSubGuids
        {
            get { return _activationSubIds; }
            set { _activationSubIds = value; }
        }

        protected override object StaleStateLock
        {
            get { return _lockIdentity; }
        }

        protected override bool HasActivation { get { return true; } }

        internal bool IsExeced = false;

        static GovernorSpeeches()
        {
            Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.CacheStaticState( _serviceId );
        }

        private void ConstructorHelper()
        {
            _segments = new Microsoft.XLANGs.Core.Segment[] {
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment0), 0, 0, 0),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment1), 1, 1, 1),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment2), 1, 1, 2),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment3), 1, 2, 3),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment4), 1, 1, 4),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment5), 1, 3, 5),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment6), 1, 1, 6),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment7), 1, 4, 7),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment8), 1, 5, 8),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment9), 1, 6, 9),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment10), 1, 7, 10),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment11), 1, 7, 11),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment12), 1, 7, 12),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment13), 1, 8, 13),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment14), 1, 9, 14),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment15), 1, 10, 15),
                new Microsoft.XLANGs.Core.Segment( new Microsoft.XLANGs.Core.Segment.SegmentCode(this.segment16), 1, 11, 16)
            };

            _Locks = 0;
            _rootContext = new __GovernorSpeeches_root_0(this);
            _stateMgrs = new Microsoft.XLANGs.Core.IStateManager[16];
            _stateMgrs[0] = _rootContext;
            FinalConstruct();
        }

        public GovernorSpeeches(System.Guid instanceId, Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession session, Microsoft.BizTalk.XLANGs.BTXEngine.BTXEvents tracker)
            : base(instanceId, session, "GovernorSpeeches", tracker)
        {
            ConstructorHelper();
        }

        public GovernorSpeeches(int callIndex, System.Guid instanceId, Microsoft.BizTalk.XLANGs.BTXEngine.BTXService parent)
            : base(callIndex, instanceId, parent, "GovernorSpeeches")
        {
            ConstructorHelper();
        }

        private const string _symInfo = @"
<XsymFile>
<ProcessFlow xmlns:om='http://schemas.microsoft.com/BizTalk/2003/DesignerData'>      <shapeType>RootShape</shapeType>      <ShapeID>d51ae940-d05b-4402-806a-98b233cb731f</ShapeID>      
<children>                          
<ShapeInfo>      <shapeType>ParallelShape</shapeType>      <ShapeID>d3063067-c378-4e15-9e12-62439a950775</ShapeID>      <ParentLink>ServiceBody_Statement</ParentLink>                <shapeText>3 Messages to Start Process</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ParallelBranchShape</shapeType>      <ShapeID>6612f56d-4721-4771-8c72-2619a21f4aff</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>ParallelBranch_1</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ReceiveShape</shapeType>      <ShapeID>769bd496-6592-40eb-869f-055a3c04fa0d</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ReceiveManifest</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>30b94aa1-bd21-4e6d-aa48-66e39a03ff9e</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetManifestCountScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>e8256a51-f03e-420c-8985-f0d336cea911</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>manifestXml</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>fb1811d3-60f9-4d6d-a7a9-5163106d9e67</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetManifestNodeCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ParallelBranchShape</shapeType>      <ShapeID>b65356b6-3219-4171-9cb6-212799502d81</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>ParallelBranch_2</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ReceiveShape</shapeType>      <ShapeID>1a91b4b4-44e9-477f-81ff-79d9519cc44f</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ReceiveMetadata</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>24e94025-c384-4809-9d13-74a9979b161a</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetMetadataCountScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>ed89fae3-035a-44a3-a989-14760c8bccd7</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetMetadataNodeCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>3e624f1f-a784-45a4-a6cf-f88135132ef2</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>metadataXml</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ParallelBranchShape</shapeType>      <ShapeID>3c04358f-b15e-4e14-89eb-dd20bd5a9944</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>ParallelBranch_3</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ReceiveShape</shapeType>      <ShapeID>8911c9c9-252b-4ff1-b2fc-661222a3942a</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ReceiveDescMeta</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>0dd509a4-a3a9-49ba-accb-07d119ac8929</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetDescMetaCountScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>d75e7b14-1ac1-48f2-b73e-7d6722a0e69e</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>GovSpeechRootXml</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>060002ea-0f57-4531-8438-49585c22276f</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetDescMetaNodeCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionShape</shapeType>      <ShapeID>7f73b6f9-43ec-4218-907b-6ff0bc4d2b12</ShapeID>      <ParentLink>ServiceBody_Statement</ParentLink>                <shapeText>CountsMatch</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>0a6c73a3-6518-497a-ad77-d8b0c5e88729</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>Yes</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>8d5c0666-c089-479a-b35b-30017f511385</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>Else</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>f680b770-392d-47ab-b30b-e0475e49c2b5</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SendNotificationScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>0d23dc09-00fd-4f24-8116-c9558e5b7fc7</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructNotificationMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>65aa4aba-fe70-428b-8195-bd7757c90e1d</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>e6a69929-63bc-4d7b-8480-482fd606ad84</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignNotificationMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>SendShape</shapeType>      <ShapeID>ee7d4610-316e-465a-a187-075b2c6b5915</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SendNotification</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>2b4f5ebc-8c0a-47d4-b072-292cda20a644</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>NotificationMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>TerminateShape</shapeType>      <ShapeID>9afe5004-c47c-4291-9bad-6417fca79b2d</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>TerminateOnCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>9a9e559a-485d-47b5-b46e-447888e81e24</ShapeID>      <ParentLink>ServiceBody_Statement</ParentLink>                <shapeText>GetInitialValuesScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>CallShape</shapeType>      <ShapeID>dbc5cf7a-7aa9-4050-ab0a-89cd9869aaad</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>GetInitialValues</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>224d0e20-df46-4059-bad7-505833495cd9</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>BaseAipMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>e25bf359-d2d2-4d6e-bb98-706da5a034f8</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>MetadataMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>e0a2a27d-6279-4e86-a301-99a317c05697</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SetRetrievedValuesScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>fa0e5560-fc5e-4ac6-ac9a-c569a8c50fad</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SetRetrievedValues</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>CatchShape</shapeType>      <ShapeID>ce597bc3-0ad8-42f6-a5fc-7bdf229495a1</ShapeID>      <ParentLink>Scope_Catch</ParentLink>                <shapeText>CatchNullRef</shapeText>                      <ExceptionType>System.NullReferenceException</ExceptionType>            
<children>                          
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>98431d9c-336c-47aa-8700-30a19a3da7ef</ShapeID>      <ParentLink>Catch_Statement</ParentLink>                <shapeText>ThrowSpecific</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>CatchShape</shapeType>      <ShapeID>3425ff58-47ca-4afb-a80e-c7332dd78045</ShapeID>      <ParentLink>Scope_Catch</ParentLink>                <shapeText>CatchCastException</shapeText>                      <ExceptionType>System.InvalidCastException</ExceptionType>            
<children>                          
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>15564c4f-0741-423e-9efb-f17cbf0bda19</ShapeID>      <ParentLink>Catch_Statement</ParentLink>                <shapeText>ThrowSpecific</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>403b0268-d83e-4fda-bb7f-5fe56bb900f7</ShapeID>      <ParentLink>ServiceBody_Statement</ParentLink>                <shapeText>SplitFilesScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>b6965cd2-e109-4755-87be-a9a8dfa22c29</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>recCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>LongRunningTransactionShape</shapeType>      <ShapeID>6080234c-318f-40b6-806c-0f3bdb54e1e2</ShapeID>      <ParentLink>Scope_Transaction</ParentLink>                <shapeText>SplitFilesTransaction</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>9170bf69-36b0-49be-9896-89e33587b76a</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>InitializeRecordCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>WhileShape</shapeType>      <ShapeID>428f9e66-3259-482f-bb76-afa98c2d3e06</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>LoopMultipleFile</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>1bccd56f-ae5d-4d1f-b023-8580d47cc8ff</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SplitManifestScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>8fdb6828-ae7b-412e-b8e6-a6e32d57797f</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>xmlManifest</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>1acae0b1-75c4-4242-a202-c8255d3633bf</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>xmlManifestFile</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>474ac5d3-394d-4624-b9f3-ab4889def9c1</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructManifestFileMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>63d88dea-ddfd-4ba0-b8a4-c6128759079f</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>8f97bd83-540d-4ebd-9bc6-1c56a73f3e8c</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignManifestFileMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>f27a06f6-e026-4b0c-b576-48021a3951a4</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SplitMetadataScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>be0baf4f-e9d9-422c-a1c1-97080ff6dcbf</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>filePath</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>LongRunningTransactionShape</shapeType>      <ShapeID>ee0940d4-5176-4f40-a54c-d178a5fa732c</ShapeID>      <ParentLink>Scope_Transaction</ParentLink>                <shapeText>SplitMetadataTransaction</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>d673c63b-35d8-4bec-a7fd-4c15ee50ba68</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SetFilePath</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionShape</shapeType>      <ShapeID>18232c27-b4b4-40a5-93fb-38f4dc2ea7b6</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>Check File Type</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>87dec178-2839-4eb0-9edd-65e16f54f334</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>.pdf?</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ScopeShape</shapeType>      <ShapeID>e70eebac-11df-44d1-b95b-82d70212ecfb</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>CreateFinalAIPScope</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>d655a350-d3a8-4aa9-b972-299246fda194</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>xmlGovSpeechRootMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>2f863054-04f5-4bf5-ac79-4ce7186b3b7a</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>fileName</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>213ae16d-b406-42e1-a027-b709c73ddf9e</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>orgFileAsBase64</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>41d7bac6-63c1-473b-ab58-accf539c08b9</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>myXPath</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>9a924b08-df5b-4039-aa6f-62b3da337703</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>xmlTemp</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>b7daacd4-a0b3-4580-adfa-35a7c599ca90</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>compCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>e0601d2f-a132-4806-b92d-58efb66372e9</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>compFileName</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>863672d3-f578-4e04-952c-2a0e1c369977</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>compRecCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>30762b6f-4ba9-4ade-aac8-e5ea717c9f97</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>compFileMainName</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableDeclarationShape</shapeType>      <ShapeID>5b5bf811-fc32-49ef-b5a4-966f78c79747</ShapeID>      <ParentLink>Scope_VariableDeclaration</ParentLink>                <shapeText>xmlAIP</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>LongRunningTransactionShape</shapeType>      <ShapeID>86bb5353-c4ae-4ccf-9bc6-d5a9efc549d3</ShapeID>      <ParentLink>Scope_Transaction</ParentLink>                <shapeText>CreateFinalAIPTransaction</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>CallShape</shapeType>      <ShapeID>686874e1-69e5-4cf7-a405-f1a1e4e3de36</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SplitMetadataMessage</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>0df8d428-749c-4a32-a700-43d95a5fdcde</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>MetadataFileMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>5fe33515-5488-47b6-aaf4-bcd9cd17d06c</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>MetadataMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>bbffc625-6981-4c28-92c9-e6ac78569742</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>filePath</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>b57395e1-64e1-4fab-a29c-05a91cf87930</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructGovSpeechMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>9a4b5fe0-d3a8-4ca4-9f4e-790597f726a3</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>5f5c67b3-668c-49b6-b45b-df0525b1b600</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignGovSpeechMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>5818b961-ab0b-4dc5-ac3e-dee032268d01</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructFinalAIPMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>e0621a43-08ca-489d-9f43-defee01c2d47</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>TransformShape</shapeType>      <ShapeID>7626d9ef-d003-4ea3-af58-6782c0933483</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>TransformBaseAIPGovSpeechMetadataFileManifestFileToFinalAIPMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessagePartRefShape</shapeType>      <ShapeID>07cc881a-f956-4d81-9ed2-5a3905833cad</ShapeID>      <ParentLink>Transform_InputMessagePartRef</ParentLink>                <shapeText>MessagePartReference_1</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessagePartRefShape</shapeType>      <ShapeID>f006d199-b8fd-40c0-8b9e-12fbde10b48c</ShapeID>      <ParentLink>Transform_InputMessagePartRef</ParentLink>                <shapeText>MessagePartReference_2</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessagePartRefShape</shapeType>      <ShapeID>1548a549-d751-4fc0-b2db-f560804e3a1a</ShapeID>      <ParentLink>Transform_InputMessagePartRef</ParentLink>                <shapeText>MessagePartReference_3</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessagePartRefShape</shapeType>      <ShapeID>1a11971c-4dab-46a7-89a5-124bc21840ad</ShapeID>      <ParentLink>Transform_InputMessagePartRef</ParentLink>                <shapeText>MessagePartReference_5</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessagePartRefShape</shapeType>      <ShapeID>570b7331-ae53-4867-a3d8-54a480524923</ShapeID>      <ParentLink>Transform_OutputMessagePartRef</ParentLink>                <shapeText>MessagePartReference_4</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>26f01fd4-4cbb-4e16-8295-82941ff35af1</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignFinalAIPMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>a9a9ff78-931e-4f39-9c5b-a81b49484f07</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>Get Components Count</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionShape</shapeType>      <ShapeID>2a1cd66f-f19b-4fb6-a034-779f82728188</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>Check Attachments</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>6d8b15ab-4585-4e13-90df-802dc5a38738</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>No Attachments</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>c6187f20-00fe-48ef-9f1c-35153b5b247e</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructFinalAIPMsgWithComponents</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>e44fa4e7-91b6-4ab1-b316-a830f1d8e9c0</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>80c177b2-f889-4541-844f-f3e830cb9715</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignFinalAIPMsgWithComponents</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>b6d5cc31-c148-4bb2-b118-36e8f637f6c8</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>Else</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>WhileShape</shapeType>      <ShapeID>1766ed84-2388-458f-9ba2-3496445c4dec</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>Loop Components</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>a5216cf3-1f19-465b-9963-db3ff325c55f</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>Set Component Metadata</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>10adc7a7-521f-4e18-954d-d77873ef3b77</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructFinalAIPMsgWithComponents</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>047a59a7-2f0b-400f-9f7c-9235ca97a75c</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>5eb129bc-2431-47c2-82b9-d4e9bd9a56e1</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignFinalAIPMsgWithComponents</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>CallShape</shapeType>      <ShapeID>7a1be33a-d170-49d8-b914-15f9539f3bca</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SetInitialValues</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>17a598cd-798a-461b-95c6-fef4331d2ed1</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>FinalAIPMsgWithComponents</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>CallShape</shapeType>      <ShapeID>e44fb85c-f0d0-40ba-9639-86b316f5af71</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>CallInsertAip</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>ParameterShape</shapeType>      <ShapeID>3c18cdad-7556-4b6d-8101-145b5ebf6c00</ShapeID>      <ParentLink>InvokeStatement_Parameter</ParentLink>                <shapeText>FinalAIPMsgWithComponents</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>662b07b7-b01d-4043-987e-17fcab27e29e</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>MetadataFileMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>7590675b-a49a-4343-851e-de54e4b582b6</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>FinalAIPMsgWithComponents</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>393ec0ce-2f07-4107-ac74-3824039ab9c9</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>FinalAIPMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>4739cd90-52f0-4972-813f-23ebe36be659</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>GovSpeechMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>DecisionBranchShape</shapeType>      <ShapeID>c9bcb2cc-74e5-4717-b140-c79fb8005cd9</ShapeID>      <ParentLink>ReallyComplexStatement_Branch</ParentLink>                <shapeText>Else</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>VariableAssignmentShape</shapeType>      <ShapeID>f302e551-0819-460d-8a45-cda108fc0e98</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>IncrementRecordCount</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>ConstructShape</shapeType>      <ShapeID>f1fea58b-01b0-4ebd-ac91-86480dbcd379</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>ConstructManifestCompleteMsg</shapeText>                  
<children>                          
<ShapeInfo>      <shapeType>MessageRefShape</shapeType>      <ShapeID>710b999c-3f4e-4181-a985-68cb71686217</ShapeID>      <ParentLink>Construct_MessageRef</ParentLink>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageAssignmentShape</shapeType>      <ShapeID>dfe90c76-1fa6-4fc3-97ec-bc932e8cfbb8</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>AssignManifestCompleteMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>SendShape</shapeType>      <ShapeID>891b7d93-eb0c-4709-a9b8-516cc8a1e28e</ShapeID>      <ParentLink>ComplexStatement_Statement</ParentLink>                <shapeText>SendManifestComplete</shapeText>                  
<children>                </children>
  </ShapeInfo>
                            
<ShapeInfo>      <shapeType>MessageDeclarationShape</shapeType>      <ShapeID>95cac4bf-d93a-478e-9a53-84822e7ddc8d</ShapeID>      <ParentLink>Scope_MessageDeclaration</ParentLink>                <shapeText>ManifestFileMsg</shapeText>                  
<children>                </children>
  </ShapeInfo>
                  </children>
  </ShapeInfo>
                  </children>
  </ProcessFlow>
<Metadata>

<TrkMetadata>
<ActionName>'GovernorSpeeches'</ActionName><IsAtomic>0</IsAtomic><Line>1029</Line><Position>14</Position><ShapeID>'e211a116-cb8b-44e7-a052-0de295aa0001'</ShapeID>
</TrkMetadata>

<TrkMetadata>
<Line>1058</Line><Position>13</Position><ShapeID>'d3063067-c378-4e15-9e12-62439a950775'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1063</Line><Position>30</Position><ShapeID>'769bd496-6592-40eb-869f-055a3c04fa0d'</ShapeID>
<Messages>
	<MsgInfo><name>ManifestMsg</name><part>Body</part><schema>PeDALS.Schema.Manifest.Manifest</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope33'</ActionName><IsAtomic>0</IsAtomic><Line>1065</Line><Position>21</Position><ShapeID>'30b94aa1-bd21-4e6d-aa48-66e39a03ff9e'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1072</Line><Position>41</Position><ShapeID>'fb1811d3-60f9-4d6d-a7a9-5163106d9e67'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1080</Line><Position>30</Position><ShapeID>'1a91b4b4-44e9-477f-81ff-79d9519cc44f'</ShapeID>
<Messages>
	<MsgInfo><name>MetadataMsg</name><part>Body</part><schema>PeDALS.Schema.Metadata.Metadata</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope34'</ActionName><IsAtomic>0</IsAtomic><Line>1082</Line><Position>21</Position><ShapeID>'24e94025-c384-4809-9d13-74a9979b161a'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1089</Line><Position>41</Position><ShapeID>'ed89fae3-035a-44a3-a989-14760c8bccd7'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1098</Line><Position>30</Position><ShapeID>'8911c9c9-252b-4ff1-b2fc-661222a3942a'</ShapeID>
<Messages>
	<MsgInfo><name>GovSpeechRootMsg</name><part>Body</part><schema>PeDALS.Apps.NM.GS.Schema.GovSpeechRoot</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope35'</ActionName><IsAtomic>0</IsAtomic><Line>1100</Line><Position>21</Position><ShapeID>'0dd509a4-a3a9-49ba-accb-07d119ac8929'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1107</Line><Position>46</Position><ShapeID>'060002ea-0f57-4531-8438-49585c22276f'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1115</Line><Position>13</Position><ShapeID>'7f73b6f9-43ec-4218-907b-6ff0bc4d2b12'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope36'</ActionName><IsAtomic>0</IsAtomic><Line>1121</Line><Position>17</Position><ShapeID>'f680b770-392d-47ab-b30b-e0475e49c2b5'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1127</Line><Position>25</Position><ShapeID>'0d23dc09-00fd-4f24-8116-c9558e5b7fc7'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1134</Line><Position>25</Position><ShapeID>'ee7d4610-316e-465a-a187-075b2c6b5915'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1138</Line><Position>17</Position><ShapeID>'9afe5004-c47c-4291-9bad-6417fca79b2d'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope37'</ActionName><IsAtomic>0</IsAtomic><Line>1141</Line><Position>13</Position><ShapeID>'9a9e559a-485d-47b5-b46e-447888e81e24'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1146</Line><Position>65</Position><ShapeID>'dbc5cf7a-7aa9-4050-ab0a-89cd9869aaad'</ShapeID>
<Messages>
	<MsgInfo><name>BaseAipMsg</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>Out</direction></MsgInfo>
	<MsgInfo><name>MetadataMsg</name><part>Body</part><schema>PeDALS.Schema.Metadata.Metadata</schema><direction>In</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope40'</ActionName><IsAtomic>0</IsAtomic><Line>1148</Line><Position>21</Position><ShapeID>'e0a2a27d-6279-4e86-a301-99a317c05697'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1153</Line><Position>44</Position><ShapeID>'fa0e5560-fc5e-4ac6-ac9a-c569a8c50fad'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1161</Line><Position>29</Position><ShapeID>'ce597bc3-0ad8-42f6-a5fc-7bdf229495a1'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1164</Line><Position>33</Position><ShapeID>'98431d9c-336c-47aa-8700-30a19a3da7ef'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1167</Line><Position>29</Position><ShapeID>'3425ff58-47ca-4afb-a80e-c7332dd78045'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1170</Line><Position>33</Position><ShapeID>'15564c4f-0741-423e-9efb-f17cbf0bda19'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'SplitFilesTransaction'</ActionName><IsAtomic>0</IsAtomic><Line>1177</Line><Position>13</Position><ShapeID>'403b0268-d83e-4fda-bb7f-5fe56bb900f7'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1185</Line><Position>30</Position><ShapeID>'9170bf69-36b0-49be-9896-89e33587b76a'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1187</Line><Position>21</Position><ShapeID>'428f9e66-3259-482f-bb76-afa98c2d3e06'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'??__scope41'</ActionName><IsAtomic>0</IsAtomic><Line>1190</Line><Position>25</Position><ShapeID>'1bccd56f-ae5d-4d1f-b023-8580d47cc8ff'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1199</Line><Position>33</Position><ShapeID>'474ac5d3-394d-4624-b9f3-ab4889def9c1'</ShapeID>
<Messages>
	<MsgInfo><name>ManifestFileMsg</name><part>Body</part><schema>PeDALS.Schema.Manifest.ManifestFile</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'SplitMetadataTransaction'</ActionName><IsAtomic>0</IsAtomic><Line>1210</Line><Position>25</Position><ShapeID>'f27a06f6-e026-4b0c-b576-48021a3951a4'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1217</Line><Position>42</Position><ShapeID>'d673c63b-35d8-4bec-a7fd-4c15ee50ba68'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1220</Line><Position>33</Position><ShapeID>'18232c27-b4b4-40a5-93fb-38f4dc2ea7b6'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<ActionName>'CreateFinalAIPTransaction'</ActionName><IsAtomic>0</IsAtomic><Line>1223</Line><Position>37</Position><ShapeID>'e70eebac-11df-44d1-b95b-82d70212ecfb'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1250</Line><Position>93</Position><ShapeID>'686874e1-69e5-4cf7-a405-f1a1e4e3de36'</ShapeID>
<Messages>
	<MsgInfo><name>MetadataFileMsg</name><part>Body</part><schema>PeDALS.Schema.Metadata.MetadataFile</schema><direction>Out</direction></MsgInfo>
	<MsgInfo><name>MetadataMsg</name><part>Body</part><schema>PeDALS.Schema.Metadata.Metadata</schema><direction>In</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1252</Line><Position>45</Position><ShapeID>'b57395e1-64e1-4fab-a29c-05a91cf87930'</ShapeID>
<Messages>
	<MsgInfo><name>GovSpeechMsg</name><part>Body</part><schema>PeDALS.Apps.NM.GS.Schema.GovSpeech</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1262</Line><Position>45</Position><ShapeID>'5818b961-ab0b-4dc5-ac3e-dee032268d01'</ShapeID>
<Messages>
	<MsgInfo><name>FinalAIPMsg</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>Out</direction></MsgInfo>
	<MsgInfo><name>BaseAipMsg</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>In</direction></MsgInfo>
	<MsgInfo><name>GovSpeechMsg</name><part>Body</part><schema>PeDALS.Apps.NM.GS.Schema.GovSpeech</schema><direction>In</direction></MsgInfo>
	<MsgInfo><name>MetadataFileMsg</name><part>Body</part><schema>PeDALS.Schema.Metadata.MetadataFile</schema><direction>In</direction></MsgInfo>
	<MsgInfo><name>ManifestFileMsg</name><part>Body</part><schema>PeDALS.Schema.Manifest.ManifestFile</schema><direction>In</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1272</Line><Position>55</Position><ShapeID>'a9a9ff78-931e-4f39-9c5b-a81b49484f07'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1278</Line><Position>45</Position><ShapeID>'2a1cd66f-f19b-4fb6-a034-779f82728188'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1281</Line><Position>49</Position><ShapeID>'c6187f20-00fe-48ef-9f1c-35153b5b247e'</ShapeID>
<Messages>
	<MsgInfo><name>FinalAIPMsgWithComponents</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1290</Line><Position>49</Position><ShapeID>'1766ed84-2388-458f-9ba2-3496445c4dec'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1293</Line><Position>61</Position><ShapeID>'a5216cf3-1f19-465b-9963-db3ff325c55f'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1306</Line><Position>49</Position><ShapeID>'10adc7a7-521f-4e18-954d-d77873ef3b77'</ShapeID>
<Messages>
	<MsgInfo><name>FinalAIPMsgWithComponents</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1313</Line><Position>89</Position><ShapeID>'7a1be33a-d170-49d8-b914-15f9539f3bca'</ShapeID>
<Messages>
	<MsgInfo><name>FinalAIPMsgWithComponents</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>In</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1315</Line><Position>82</Position><ShapeID>'e44fb85c-f0d0-40ba-9639-86b316f5af71'</ShapeID>
<Messages>
	<MsgInfo><name>FinalAIPMsgWithComponents</name><part>Body</part><schema>PeDALS.Schema.AIP.AIPSchema</schema><direction>In</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1322</Line><Position>34</Position><ShapeID>'f302e551-0819-460d-8a45-cda108fc0e98'</ShapeID>
<Messages>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1325</Line><Position>21</Position><ShapeID>'f1fea58b-01b0-4ebd-ac91-86480dbcd379'</ShapeID>
<Messages>
	<MsgInfo><name>ManifestCompleteMsg</name><part>Body</part><schema>PeDALS.Schema.AIP.ManifestComplete</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>

<TrkMetadata>
<Line>1338</Line><Position>21</Position><ShapeID>'891b7d93-eb0c-4709-a9b8-516cc8a1e28e'</ShapeID>
<Messages>
	<MsgInfo><name>ManifestCompleteMsg</name><part>Body</part><schema>PeDALS.Schema.AIP.ManifestComplete</schema><direction>Out</direction></MsgInfo>
</Messages>
</TrkMetadata>
</Metadata>
</XsymFile>";

        public override string odXml { get { return _symODXML; } }

        private const string _symODXML = @"
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<om:MetaModel MajorVersion='1' MinorVersion='3' Core='2b131234-7959-458d-834f-2dc0769ce683' ScheduleModel='66366196-361d-448d-976f-cab5e87496d2' xmlns:om='http://schemas.microsoft.com/BizTalk/2003/DesignerData'>
    <om:Element Type='Module' OID='c6b6a26b-4fac-4766-9d8d-39cd7c1245af' LowerBound='1.1' HigherBound='339.1'>
        <om:Property Name='ReportToAnalyst' Value='True' />
        <om:Property Name='Name' Value='PeDALS.Apps.NM.GS.Orchestrations' />
        <om:Property Name='Signal' Value='False' />
        <om:Element Type='MultipartMessageType' OID='cec26d1e-65e4-421b-a9cd-bdb85ac2f62f' ParentLink='Module_MessageType' LowerBound='4.1' HigherBound='8.1'>
            <om:Property Name='TypeModifier' Value='Internal' />
            <om:Property Name='ReportToAnalyst' Value='True' />
            <om:Property Name='Name' Value='DescMetaItemMessageType' />
            <om:Property Name='Signal' Value='True' />
            <om:Element Type='PartDeclaration' OID='cdcc9113-6f05-460d-90ed-23885f6d3919' ParentLink='MultipartMessageType_PartDeclaration' LowerBound='6.1' HigherBound='7.1'>
                <om:Property Name='ClassName' Value='PeDALS.Apps.NM.GS.Schema.GovSpeech' />
                <om:Property Name='IsBodyPart' Value='True' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='Body' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
        </om:Element>
        <om:Element Type='MultipartMessageType' OID='d5c42bdf-3ba1-42e4-805a-5084aa28ef00' ParentLink='Module_MessageType' LowerBound='8.1' HigherBound='12.1'>
            <om:Property Name='TypeModifier' Value='Internal' />
            <om:Property Name='ReportToAnalyst' Value='True' />
            <om:Property Name='Name' Value='DescMetaMessageType' />
            <om:Property Name='Signal' Value='True' />
            <om:Element Type='PartDeclaration' OID='9ca0c3d2-ade9-4ab2-a588-a54f8fd6f093' ParentLink='MultipartMessageType_PartDeclaration' LowerBound='10.1' HigherBound='11.1'>
                <om:Property Name='ClassName' Value='PeDALS.Apps.NM.GS.Schema.GovSpeechRoot' />
                <om:Property Name='IsBodyPart' Value='True' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='Body' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
        </om:Element>
        <om:Element Type='ServiceDeclaration' OID='f4259834-13a2-4e79-9ea7-193035f3a88d' ParentLink='Module_ServiceDeclaration' LowerBound='23.1' HigherBound='338.1'>
            <om:Property Name='InitializedTransactionType' Value='True' />
            <om:Property Name='IsInvokable' Value='False' />
            <om:Property Name='TypeModifier' Value='Internal' />
            <om:Property Name='ReportToAnalyst' Value='True' />
            <om:Property Name='Name' Value='GovernorSpeeches' />
            <om:Property Name='Signal' Value='True' />
            <om:Element Type='VariableDeclaration' OID='d9da94ec-bec6-473d-bbd9-0c582a60a2c7' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='42.1' HigherBound='43.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.Int32' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='descMetaCount' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='3559f58f-cf81-480e-b8d7-58369a6ff1af' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='43.1' HigherBound='44.1'>
                <om:Property Name='UseDefaultConstructor' Value='True' />
                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='doc' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='835ef9c2-89b3-4c58-a51d-b813e2e6db31' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='44.1' HigherBound='45.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.String' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='seriesAcquisitionDir' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='dc536fca-e017-474c-847b-36ef27ad5c78' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='45.1' HigherBound='46.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.String' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='superPackageId' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='beee2f88-303e-49c3-b8b5-165ac1e17a18' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='46.1' HigherBound='47.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.Int32' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='seriesId' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='9e8aca77-6c21-4bca-9db7-be8c6ca43135' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='47.1' HigherBound='48.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.Int32' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='seriesAcquisitionId' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='bb44d89b-990c-4454-8436-2957a0914b6b' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='48.1' HigherBound='49.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.Int32' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='metadataCount' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='VariableDeclaration' OID='e3365639-7aeb-4cad-b3af-df3393263bca' ParentLink='ServiceDeclaration_VariableDeclaration' LowerBound='49.1' HigherBound='50.1'>
                <om:Property Name='UseDefaultConstructor' Value='False' />
                <om:Property Name='Type' Value='System.Int32' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='manifestCount' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='LongRunningTransaction' OID='1d4d351c-02c0-4174-9ad7-c4bee20f5e04' ParentLink='ServiceDeclaration_Transaction' LowerBound='24.21' HigherBound='24.63'>
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='GovernorSpeechesTransaction' />
                <om:Property Name='Signal' Value='False' />
            </om:Element>
            <om:Element Type='CorrelationDeclaration' OID='3ae9f6a9-616f-4afc-9b54-da792d8874df' ParentLink='ServiceDeclaration_CorrelationDeclaration' LowerBound='36.1' HigherBound='37.1'>
                <om:Property Name='Type' Value='PeDALS.Apps.NM.GS.Orchestrations.ReceivePortIdCorrelationType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ReceivePortId' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='StatementRef' OID='977dec09-080a-420c-9e0f-2cce6e063380' ParentLink='CorrelationDeclaration_StatementRef' LowerBound='58.89' HigherBound='58.113'>
                    <om:Property Name='Initializes' Value='True' />
                    <om:Property Name='Ref' Value='769bd496-6592-40eb-869f-055a3c04fa0d' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='StatementRef_1' />
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
                <om:Element Type='StatementRef' OID='2c3df493-e146-4361-aa1e-2f1c833e6aee' ParentLink='CorrelationDeclaration_StatementRef' LowerBound='75.89' HigherBound='75.113'>
                    <om:Property Name='Initializes' Value='True' />
                    <om:Property Name='Ref' Value='1a91b4b4-44e9-477f-81ff-79d9519cc44f' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='StatementRef_2' />
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
                <om:Element Type='StatementRef' OID='98d65bd4-ddda-4c64-86d8-a9d742cb4499' ParentLink='CorrelationDeclaration_StatementRef' LowerBound='93.89' HigherBound='93.113'>
                    <om:Property Name='Initializes' Value='True' />
                    <om:Property Name='Ref' Value='8911c9c9-252b-4ff1-b2fc-661222a3942a' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='StatementRef_3' />
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
            <om:Element Type='MessageDeclaration' OID='272e926c-4598-4c7f-8af0-247ac564bb71' ParentLink='ServiceDeclaration_MessageDeclaration' LowerBound='37.1' HigherBound='38.1'>
                <om:Property Name='Type' Value='PeDALS.Orchestrations.ManifestCompleteMessageType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ManifestCompleteMsg' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='MessageDeclaration' OID='c9c9f3fc-3a48-46df-8918-c1c9d482b529' ParentLink='ServiceDeclaration_MessageDeclaration' LowerBound='38.1' HigherBound='39.1'>
                <om:Property Name='Type' Value='PeDALS.Orchestrations.AIPMessageType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='BaseAipMsg' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='MessageDeclaration' OID='093c32c5-0047-40fe-9e87-dc30c282928e' ParentLink='ServiceDeclaration_MessageDeclaration' LowerBound='39.1' HigherBound='40.1'>
                <om:Property Name='Type' Value='PeDALS.Orchestrations.ManifestMessageType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ManifestMsg' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='MessageDeclaration' OID='f393fba1-4956-4c6c-b274-cb6ce51cc103' ParentLink='ServiceDeclaration_MessageDeclaration' LowerBound='40.1' HigherBound='41.1'>
                <om:Property Name='Type' Value='PeDALS.Orchestrations.MetadataMessageType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='MetadataMsg' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='MessageDeclaration' OID='70f6c956-5a14-4e6a-a7e6-5cd426ced370' ParentLink='ServiceDeclaration_MessageDeclaration' LowerBound='41.1' HigherBound='42.1'>
                <om:Property Name='Type' Value='PeDALS.Apps.NM.GS.Orchestrations.DescMetaMessageType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='GovSpeechRootMsg' />
                <om:Property Name='Signal' Value='True' />
            </om:Element>
            <om:Element Type='ServiceBody' OID='d51ae940-d05b-4402-806a-98b233cb731f' ParentLink='ServiceDeclaration_ServiceBody'>
                <om:Property Name='Signal' Value='False' />
                <om:Element Type='Parallel' OID='d3063067-c378-4e15-9e12-62439a950775' ParentLink='ServiceBody_Statement' LowerBound='52.1' HigherBound='109.1'>
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='3 Messages to Start Process' />
                    <om:Property Name='Signal' Value='True' />
                    <om:Element Type='ParallelBranch' OID='6612f56d-4721-4771-8c72-2619a21f4aff' ParentLink='ReallyComplexStatement_Branch' LowerBound='57.1' HigherBound='71.1'>
                        <om:Property Name='IsGhostBranch' Value='True' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='ParallelBranch_1' />
                        <om:Property Name='Signal' Value='False' />
                        <om:Element Type='Receive' OID='769bd496-6592-40eb-869f-055a3c04fa0d' ParentLink='ComplexStatement_Statement' LowerBound='57.1' HigherBound='59.1'>
                            <om:Property Name='Activate' Value='True' />
                            <om:Property Name='PortName' Value='ReceiveManifestPort' />
                            <om:Property Name='MessageName' Value='ManifestMsg' />
                            <om:Property Name='OperationName' Value='ReceiveManifest' />
                            <om:Property Name='OperationMessageName' Value='request' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='ReceiveManifest' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                        <om:Element Type='Scope' OID='30b94aa1-bd21-4e6d-aa48-66e39a03ff9e' ParentLink='ComplexStatement_Statement' LowerBound='59.1' HigherBound='71.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='GetManifestCountScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableDeclaration' OID='e8256a51-f03e-420c-8985-f0d336cea911' ParentLink='Scope_VariableDeclaration' LowerBound='62.1' HigherBound='63.1'>
                                <om:Property Name='UseDefaultConstructor' Value='True' />
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='manifestXml' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='VariableAssignment' OID='fb1811d3-60f9-4d6d-a7a9-5163106d9e67' ParentLink='ComplexStatement_Statement' LowerBound='66.1' HigherBound='69.1'>
                                <om:Property Name='Expression' Value='manifestXml = ManifestMsg.Body;&#xD;&#xA;manifestCount = PeDALS.Utilities.XmlHelper.GetNodeCount(manifestXml, &quot;/*[local-name()=&apos;manifest&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;file&apos; and namespace-uri()=&apos;&apos;]&quot;);' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='GetManifestNodeCount' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                        </om:Element>
                    </om:Element>
                    <om:Element Type='ParallelBranch' OID='b65356b6-3219-4171-9cb6-212799502d81' ParentLink='ReallyComplexStatement_Branch' LowerBound='74.1' HigherBound='89.1'>
                        <om:Property Name='IsGhostBranch' Value='True' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='ParallelBranch_2' />
                        <om:Property Name='Signal' Value='False' />
                        <om:Element Type='Receive' OID='1a91b4b4-44e9-477f-81ff-79d9519cc44f' ParentLink='ComplexStatement_Statement' LowerBound='74.1' HigherBound='76.1'>
                            <om:Property Name='Activate' Value='True' />
                            <om:Property Name='PortName' Value='ReceiveMetadataPort' />
                            <om:Property Name='MessageName' Value='MetadataMsg' />
                            <om:Property Name='OperationName' Value='ReceiveMetadata' />
                            <om:Property Name='OperationMessageName' Value='request' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='ReceiveMetadata' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                        <om:Element Type='Scope' OID='24e94025-c384-4809-9d13-74a9979b161a' ParentLink='ComplexStatement_Statement' LowerBound='76.1' HigherBound='89.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='GetMetadataCountScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableAssignment' OID='ed89fae3-035a-44a3-a989-14760c8bccd7' ParentLink='ComplexStatement_Statement' LowerBound='83.1' HigherBound='87.1'>
                                <om:Property Name='Expression' Value='metadataXml = MetadataMsg.Body;&#xD;&#xA;//metadataCount = PeDALS.Utilities.XmlHelper.GetNodeCount(metadataXml, &quot;/*[local-name()=&apos;Object&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Files&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Folder&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Folder&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;File&apos; and namespace-uri()=&apos;&apos;]&quot;);&#xD;&#xA;metadataCount = PeDALS.Utilities.XmlHelper.GetNodeCount(metadataXml, &quot;/*[local-name()=&apos;Object&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Files&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Folder&apos; and namespace-uri()=&apos;&apos;]//*[local-name()=&apos;File&apos; and namespace-uri()=&apos;&apos;]&quot;);' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='GetMetadataNodeCount' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='VariableDeclaration' OID='3e624f1f-a784-45a4-a6cf-f88135132ef2' ParentLink='Scope_VariableDeclaration' LowerBound='79.1' HigherBound='80.1'>
                                <om:Property Name='UseDefaultConstructor' Value='True' />
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='metadataXml' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                        </om:Element>
                    </om:Element>
                    <om:Element Type='ParallelBranch' OID='3c04358f-b15e-4e14-89eb-dd20bd5a9944' ParentLink='ReallyComplexStatement_Branch' LowerBound='92.1' HigherBound='107.1'>
                        <om:Property Name='IsGhostBranch' Value='True' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='ParallelBranch_3' />
                        <om:Property Name='Signal' Value='False' />
                        <om:Element Type='Receive' OID='8911c9c9-252b-4ff1-b2fc-661222a3942a' ParentLink='ComplexStatement_Statement' LowerBound='92.1' HigherBound='94.1'>
                            <om:Property Name='Activate' Value='True' />
                            <om:Property Name='PortName' Value='ReceiveDescMetaPort' />
                            <om:Property Name='MessageName' Value='GovSpeechRootMsg' />
                            <om:Property Name='OperationName' Value='ReceiveDescMeta' />
                            <om:Property Name='OperationMessageName' Value='request' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='ReceiveDescMeta' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                        <om:Element Type='Scope' OID='0dd509a4-a3a9-49ba-accb-07d119ac8929' ParentLink='ComplexStatement_Statement' LowerBound='94.1' HigherBound='107.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='GetDescMetaCountScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableDeclaration' OID='d75e7b14-1ac1-48f2-b73e-7d6722a0e69e' ParentLink='Scope_VariableDeclaration' LowerBound='97.1' HigherBound='98.1'>
                                <om:Property Name='UseDefaultConstructor' Value='True' />
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='GovSpeechRootXml' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='VariableAssignment' OID='060002ea-0f57-4531-8438-49585c22276f' ParentLink='ComplexStatement_Statement' LowerBound='101.1' HigherBound='105.1'>
                                <om:Property Name='Expression' Value='GovSpeechRootXml = GovSpeechRootMsg.Body;&#xD;&#xA;//metadataCount = PeDALS.Utilities.XmlHelper.GetNodeCount(metadataXml, &quot;/*[local-name()=&apos;Object&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Files&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Folder&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Folder&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;File&apos; and namespace-uri()=&apos;&apos;]&quot;);&#xD;&#xA;descMetaCount = PeDALS.Utilities.XmlHelper.GetNodeCount(GovSpeechRootXml, &quot;/*[local-name()=&apos;GovSpeechRoot&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;GovSpeech&apos; and namespace-uri()=&apos;&apos;]&quot;);' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='GetDescMetaNodeCount' />
                                <om:Property Name='Signal' Value='False' />
                            </om:Element>
                        </om:Element>
                    </om:Element>
                </om:Element>
                <om:Element Type='Decision' OID='7f73b6f9-43ec-4218-907b-6ff0bc4d2b12' ParentLink='ServiceBody_Statement' LowerBound='109.1' HigherBound='135.1'>
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='CountsMatch' />
                    <om:Property Name='Signal' Value='True' />
                    <om:Element Type='DecisionBranch' OID='0a6c73a3-6518-497a-ad77-d8b0c5e88729' ParentLink='ReallyComplexStatement_Branch' LowerBound='110.13' HigherBound='113.1'>
                        <om:Property Name='Expression' Value='manifestCount == metadataCount &amp;&amp; manifestCount == descMetaCount' />
                        <om:Property Name='IsGhostBranch' Value='True' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='Yes' />
                        <om:Property Name='Signal' Value='True' />
                    </om:Element>
                    <om:Element Type='DecisionBranch' OID='8d5c0666-c089-479a-b35b-30017f511385' ParentLink='ReallyComplexStatement_Branch'>
                        <om:Property Name='IsGhostBranch' Value='True' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='Else' />
                        <om:Property Name='Signal' Value='False' />
                        <om:Element Type='Scope' OID='f680b770-392d-47ab-b30b-e0475e49c2b5' ParentLink='ComplexStatement_Statement' LowerBound='115.1' HigherBound='132.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='SendNotificationScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='Construct' OID='0d23dc09-00fd-4f24-8116-c9558e5b7fc7' ParentLink='ComplexStatement_Statement' LowerBound='121.1' HigherBound='128.1'>
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='ConstructNotificationMsg' />
                                <om:Property Name='Signal' Value='True' />
                                <om:Element Type='MessageRef' OID='65aa4aba-fe70-428b-8195-bd7757c90e1d' ParentLink='Construct_MessageRef' LowerBound='122.35' HigherBound='122.50'>
                                    <om:Property Name='Ref' Value='NotificationMsg' />
                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                    <om:Property Name='Signal' Value='False' />
                                </om:Element>
                                <om:Element Type='MessageAssignment' OID='e6a69929-63bc-4d7b-8480-482fd606ad84' ParentLink='ComplexStatement_Statement' LowerBound='124.1' HigherBound='127.1'>
                                    <om:Property Name='Expression' Value='NotificationMsg = new System.Xml.XmlDocument();&#xD;&#xA;NotificationMsg.LoadXml(&quot;&lt;Notification&gt;&lt;Type&gt;Warning&lt;/Type&gt;&lt;Metadata&gt;&lt;ProvenanceId&gt;&quot; + MetadataMsg.Body.Name + &quot;&lt;/ProvenanceId&gt;&lt;SeriesId&gt;&quot; + System.Convert.ToString(MetadataMsg.Body.ID) + &quot;&lt;/SeriesId&gt;&lt;SeriesAcquisitionId&gt;&quot; + System.Convert.ToString(MetadataMsg.Body.GroupIdentifier) + &quot;&lt;/SeriesAcquisitionId&gt;&lt;ItemId&gt;Unknown&lt;/ItemId&gt;&lt;/Metadata&gt;&lt;Message&gt;Shipping manifest, NZMetadataExtractor and Descriptive Metadata counts do not match.  Manifest Count = &quot; + manifestCount.ToString() + &quot;, Metadata Count = &quot; + metadataCount.ToString() + &quot; and Descriptive Metadata Count = &quot; + descMetaCount.ToString() + &quot;.&lt;/Message&gt;&lt;/Notification&gt;&quot;);' />
                                    <om:Property Name='ReportToAnalyst' Value='False' />
                                    <om:Property Name='Name' Value='AssignNotificationMsg' />
                                    <om:Property Name='Signal' Value='True' />
                                </om:Element>
                            </om:Element>
                            <om:Element Type='Send' OID='ee7d4610-316e-465a-a187-075b2c6b5915' ParentLink='ComplexStatement_Statement' LowerBound='128.1' HigherBound='130.1'>
                                <om:Property Name='PortName' Value='SendNotificationPort' />
                                <om:Property Name='MessageName' Value='NotificationMsg' />
                                <om:Property Name='OperationName' Value='SendNotification' />
                                <om:Property Name='OperationMessageName' Value='request' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='SendNotification' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='MessageDeclaration' OID='2b4f5ebc-8c0a-47d4-b072-292cda20a644' ParentLink='Scope_MessageDeclaration' LowerBound='118.1' HigherBound='119.1'>
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='NotificationMsg' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                        </om:Element>
                        <om:Element Type='Terminate' OID='9afe5004-c47c-4291-9bad-6417fca79b2d' ParentLink='ComplexStatement_Statement' LowerBound='132.1' HigherBound='134.1'>
                            <om:Property Name='ErrorMessage' Value='&quot;Terminated due to count mismatch.&quot;;' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='TerminateOnCount' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                    </om:Element>
                </om:Element>
                <om:Element Type='Scope' OID='9a9e559a-485d-47b5-b46e-447888e81e24' ParentLink='ServiceBody_Statement' LowerBound='135.1' HigherBound='171.1'>
                    <om:Property Name='InitializedTransactionType' Value='True' />
                    <om:Property Name='IsSynchronized' Value='False' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='GetInitialValuesScope' />
                    <om:Property Name='Signal' Value='True' />
                    <om:Element Type='Call' OID='dbc5cf7a-7aa9-4050-ab0a-89cd9869aaad' ParentLink='ComplexStatement_Statement' LowerBound='140.1' HigherBound='142.1'>
                        <om:Property Name='Identifier' Value='GetInitialValues' />
                        <om:Property Name='Invokee' Value='PeDALS.Orchestrations.GetInitialValues' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='GetInitialValues' />
                        <om:Property Name='Signal' Value='False' />
                        <om:Element Type='Parameter' OID='224d0e20-df46-4059-bad7-505833495cd9' ParentLink='InvokeStatement_Parameter'>
                            <om:Property Name='Direction' Value='Out' />
                            <om:Property Name='Name' Value='BaseAipMsg' />
                            <om:Property Name='Type' Value='PeDALS.Orchestrations.AchivalIngestPackageMessageType' />
                            <om:Property Name='Signal' Value='False' />
                        </om:Element>
                        <om:Element Type='Parameter' OID='e25bf359-d2d2-4d6e-bb98-706da5a034f8' ParentLink='InvokeStatement_Parameter'>
                            <om:Property Name='Direction' Value='In' />
                            <om:Property Name='Name' Value='MetadataMsg' />
                            <om:Property Name='Type' Value='PeDALS.Orchestrations.NZMetadataMessageType' />
                            <om:Property Name='Signal' Value='False' />
                        </om:Element>
                    </om:Element>
                    <om:Element Type='Scope' OID='e0a2a27d-6279-4e86-a301-99a317c05697' ParentLink='ComplexStatement_Statement' LowerBound='142.1' HigherBound='169.1'>
                        <om:Property Name='InitializedTransactionType' Value='True' />
                        <om:Property Name='IsSynchronized' Value='False' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='SetRetrievedValuesScope' />
                        <om:Property Name='Signal' Value='True' />
                        <om:Element Type='VariableAssignment' OID='fa0e5560-fc5e-4ac6-ac9a-c569a8c50fad' ParentLink='ComplexStatement_Statement' LowerBound='147.1' HigherBound='152.1'>
                            <om:Property Name='Expression' Value='superPackageId = BaseAipMsg.Body.SuperPackageId;&#xD;&#xA;seriesId = BaseAipMsg.Body.CoreMetadata.Provenance.Series.SeriesId;&#xD;&#xA;seriesAcquisitionId = BaseAipMsg.Body.CoreMetadata.Provenance.Series.Acquisition.SeriesAcquisitionId;&#xD;&#xA;seriesAcquisitionDir = BaseAipMsg.Body.CoreMetadata.Provenance.Series.Acquisition.SeriesAcquisitionDirectory;&#xD;&#xA;' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='SetRetrievedValues' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                        <om:Element Type='Catch' OID='ce597bc3-0ad8-42f6-a5fc-7bdf229495a1' ParentLink='Scope_Catch' LowerBound='155.1' HigherBound='161.1'>
                            <om:Property Name='ExceptionName' Value='ex' />
                            <om:Property Name='ExceptionType' Value='System.NullReferenceException' />
                            <om:Property Name='IsFaultMessage' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='CatchNullRef' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableAssignment' OID='98431d9c-336c-47aa-8700-30a19a3da7ef' ParentLink='Catch_Statement' LowerBound='158.1' HigherBound='160.1'>
                                <om:Property Name='Expression' Value='throw new System.ApplicationException(&quot;Missing data returned from database.  ItemId and SourcePath could not be set.  Are you sure the ProvenanceId, SeriesId, and SeriesAcquisitionId exists?&quot;, ex);' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='ThrowSpecific' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                        </om:Element>
                        <om:Element Type='Catch' OID='3425ff58-47ca-4afb-a80e-c7332dd78045' ParentLink='Scope_Catch' LowerBound='161.1' HigherBound='167.1'>
                            <om:Property Name='ExceptionName' Value='ex' />
                            <om:Property Name='ExceptionType' Value='System.InvalidCastException' />
                            <om:Property Name='IsFaultMessage' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='CatchCastException' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableAssignment' OID='15564c4f-0741-423e-9efb-f17cbf0bda19' ParentLink='Catch_Statement' LowerBound='164.1' HigherBound='166.1'>
                                <om:Property Name='Expression' Value='throw new System.ApplicationException(&quot;Malformed data.  Is series acquisition id in an integer format?&quot;, ex);' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='ThrowSpecific' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                        </om:Element>
                    </om:Element>
                </om:Element>
                <om:Element Type='Scope' OID='403b0268-d83e-4fda-bb7f-5fe56bb900f7' ParentLink='ServiceBody_Statement' LowerBound='171.1' HigherBound='336.1'>
                    <om:Property Name='InitializedTransactionType' Value='True' />
                    <om:Property Name='IsSynchronized' Value='False' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='SplitFilesScope' />
                    <om:Property Name='Signal' Value='True' />
                    <om:Element Type='VariableDeclaration' OID='b6965cd2-e109-4755-87be-a9a8dfa22c29' ParentLink='Scope_VariableDeclaration' LowerBound='175.1' HigherBound='176.1'>
                        <om:Property Name='InitialValue' Value='1' />
                        <om:Property Name='UseDefaultConstructor' Value='False' />
                        <om:Property Name='Type' Value='System.Int32' />
                        <om:Property Name='ParamDirection' Value='In' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='recCount' />
                        <om:Property Name='Signal' Value='True' />
                    </om:Element>
                    <om:Element Type='LongRunningTransaction' OID='6080234c-318f-40b6-806c-0f3bdb54e1e2' ParentLink='Scope_Transaction' LowerBound='172.18' HigherBound='172.64'>
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='SplitFilesTransaction' />
                        <om:Property Name='Signal' Value='False' />
                    </om:Element>
                    <om:Element Type='VariableAssignment' OID='9170bf69-36b0-49be-9896-89e33587b76a' ParentLink='ComplexStatement_Statement' LowerBound='179.1' HigherBound='181.1'>
                        <om:Property Name='Expression' Value='recCount = 1;' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='InitializeRecordCount' />
                        <om:Property Name='Signal' Value='True' />
                    </om:Element>
                    <om:Element Type='While' OID='428f9e66-3259-482f-bb76-afa98c2d3e06' ParentLink='ComplexStatement_Statement' LowerBound='181.1' HigherBound='319.1'>
                        <om:Property Name='Expression' Value='recCount &lt;= manifestCount&#xD;&#xA;' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='LoopMultipleFile' />
                        <om:Property Name='Signal' Value='True' />
                        <om:Element Type='Scope' OID='1bccd56f-ae5d-4d1f-b023-8580d47cc8ff' ParentLink='ComplexStatement_Statement' LowerBound='184.1' HigherBound='204.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='SplitManifestScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableDeclaration' OID='8fdb6828-ae7b-412e-b8e6-a6e32d57797f' ParentLink='Scope_VariableDeclaration' LowerBound='187.1' HigherBound='188.1'>
                                <om:Property Name='UseDefaultConstructor' Value='True' />
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='xmlManifest' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='VariableDeclaration' OID='1acae0b1-75c4-4242-a202-c8255d3633bf' ParentLink='Scope_VariableDeclaration' LowerBound='188.1' HigherBound='189.1'>
                                <om:Property Name='UseDefaultConstructor' Value='True' />
                                <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='xmlManifestFile' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='Construct' OID='474ac5d3-394d-4624-b9f3-ab4889def9c1' ParentLink='ComplexStatement_Statement' LowerBound='193.1' HigherBound='202.1'>
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='ConstructManifestFileMsg' />
                                <om:Property Name='Signal' Value='True' />
                                <om:Element Type='MessageRef' OID='63d88dea-ddfd-4ba0-b8a4-c6128759079f' ParentLink='Construct_MessageRef' LowerBound='194.43' HigherBound='194.58'>
                                    <om:Property Name='Ref' Value='ManifestFileMsg' />
                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                    <om:Property Name='Signal' Value='False' />
                                </om:Element>
                                <om:Element Type='MessageAssignment' OID='8f97bd83-540d-4ebd-9bc6-1c56a73f3e8c' ParentLink='ComplexStatement_Statement' LowerBound='196.1' HigherBound='201.1'>
                                    <om:Property Name='Expression' Value='xmlManifest = ManifestMsg.Body;&#xD;&#xA;xmlManifestFile = PeDALS.Utilities.XmlHelper.GetNodeAsXML(xmlManifest, &quot;/*[local-name()=&apos;manifest&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;file&apos; and namespace-uri()=&apos;&apos;][&quot; + System.Convert.ToString(recCount) + &quot;]&quot;);&#xD;&#xA;&#xD;&#xA;ManifestFileMsg.Body = xmlManifestFile;' />
                                    <om:Property Name='ReportToAnalyst' Value='False' />
                                    <om:Property Name='Name' Value='AssignManifestFileMsg' />
                                    <om:Property Name='Signal' Value='True' />
                                </om:Element>
                            </om:Element>
                        </om:Element>
                        <om:Element Type='Scope' OID='f27a06f6-e026-4b0c-b576-48021a3951a4' ParentLink='ComplexStatement_Statement' LowerBound='204.1' HigherBound='316.1'>
                            <om:Property Name='InitializedTransactionType' Value='True' />
                            <om:Property Name='IsSynchronized' Value='False' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='SplitMetadataScope' />
                            <om:Property Name='Signal' Value='True' />
                            <om:Element Type='VariableDeclaration' OID='be0baf4f-e9d9-422c-a1c1-97080ff6dcbf' ParentLink='Scope_VariableDeclaration' LowerBound='207.1' HigherBound='208.1'>
                                <om:Property Name='UseDefaultConstructor' Value='False' />
                                <om:Property Name='Type' Value='System.String' />
                                <om:Property Name='ParamDirection' Value='In' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='filePath' />
                                <om:Property Name='Signal' Value='True' />
                            </om:Element>
                            <om:Element Type='LongRunningTransaction' OID='ee0940d4-5176-4f40-a54c-d178a5fa732c' ParentLink='Scope_Transaction' LowerBound='205.30' HigherBound='205.79'>
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='SplitMetadataTransaction' />
                                <om:Property Name='Signal' Value='False' />
                            </om:Element>
                            <om:Element Type='VariableAssignment' OID='d673c63b-35d8-4bec-a7fd-4c15ee50ba68' ParentLink='ComplexStatement_Statement' LowerBound='211.1' HigherBound='214.1'>
                                <om:Property Name='Expression' Value='filePath = ManifestFileMsg.Body.filename;&#xD;&#xA;filePath = filePath.Trim();' />
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='SetFilePath' />
                                <om:Property Name='Signal' Value='False' />
                            </om:Element>
                            <om:Element Type='Decision' OID='18232c27-b4b4-40a5-93fb-38f4dc2ea7b6' ParentLink='ComplexStatement_Statement' LowerBound='214.1' HigherBound='314.1'>
                                <om:Property Name='ReportToAnalyst' Value='True' />
                                <om:Property Name='Name' Value='Check File Type' />
                                <om:Property Name='Signal' Value='True' />
                                <om:Element Type='DecisionBranch' OID='87dec178-2839-4eb0-9edd-65e16f54f334' ParentLink='ReallyComplexStatement_Branch' LowerBound='215.33' HigherBound='314.1'>
                                    <om:Property Name='Expression' Value='filePath.EndsWith(&quot;.pdf&quot;)' />
                                    <om:Property Name='IsGhostBranch' Value='True' />
                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                    <om:Property Name='Name' Value='.pdf?' />
                                    <om:Property Name='Signal' Value='True' />
                                    <om:Element Type='Scope' OID='e70eebac-11df-44d1-b95b-82d70212ecfb' ParentLink='ComplexStatement_Statement' LowerBound='217.1' HigherBound='313.1'>
                                        <om:Property Name='InitializedTransactionType' Value='True' />
                                        <om:Property Name='IsSynchronized' Value='False' />
                                        <om:Property Name='ReportToAnalyst' Value='True' />
                                        <om:Property Name='Name' Value='CreateFinalAIPScope' />
                                        <om:Property Name='Signal' Value='True' />
                                        <om:Element Type='VariableDeclaration' OID='d655a350-d3a8-4aa9-b972-299246fda194' ParentLink='Scope_VariableDeclaration' LowerBound='224.1' HigherBound='225.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='True' />
                                            <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='xmlGovSpeechRootMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='2f863054-04f5-4bf5-ac79-4ce7186b3b7a' ParentLink='Scope_VariableDeclaration' LowerBound='225.1' HigherBound='226.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.String' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='fileName' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='213ae16d-b406-42e1-a027-b709c73ddf9e' ParentLink='Scope_VariableDeclaration' LowerBound='226.1' HigherBound='227.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.String' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='orgFileAsBase64' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='41d7bac6-63c1-473b-ab58-accf539c08b9' ParentLink='Scope_VariableDeclaration' LowerBound='227.1' HigherBound='228.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.String' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='myXPath' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='9a924b08-df5b-4039-aa6f-62b3da337703' ParentLink='Scope_VariableDeclaration' LowerBound='228.1' HigherBound='229.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='True' />
                                            <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='xmlTemp' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='b7daacd4-a0b3-4580-adfa-35a7c599ca90' ParentLink='Scope_VariableDeclaration' LowerBound='229.1' HigherBound='230.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.Int32' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='compCount' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='e0601d2f-a132-4806-b92d-58efb66372e9' ParentLink='Scope_VariableDeclaration' LowerBound='230.1' HigherBound='231.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.String' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='compFileName' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='863672d3-f578-4e04-952c-2a0e1c369977' ParentLink='Scope_VariableDeclaration' LowerBound='231.1' HigherBound='232.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.Int32' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='compRecCount' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='30762b6f-4ba9-4ade-aac8-e5ea717c9f97' ParentLink='Scope_VariableDeclaration' LowerBound='232.1' HigherBound='233.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='False' />
                                            <om:Property Name='Type' Value='System.String' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='compFileMainName' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='VariableDeclaration' OID='5b5bf811-fc32-49ef-b5a4-966f78c79747' ParentLink='Scope_VariableDeclaration' LowerBound='233.1' HigherBound='234.1'>
                                            <om:Property Name='UseDefaultConstructor' Value='True' />
                                            <om:Property Name='Type' Value='System.Xml.XmlDocument' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='xmlAIP' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='LongRunningTransaction' OID='86bb5353-c4ae-4ccf-9bc6-d5a9efc549d3' ParentLink='Scope_Transaction' LowerBound='218.42' HigherBound='218.92'>
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='CreateFinalAIPTransaction' />
                                            <om:Property Name='Signal' Value='False' />
                                        </om:Element>
                                        <om:Element Type='Call' OID='686874e1-69e5-4cf7-a405-f1a1e4e3de36' ParentLink='ComplexStatement_Statement' LowerBound='244.1' HigherBound='246.1'>
                                            <om:Property Name='Identifier' Value='SplitMetadata' />
                                            <om:Property Name='Invokee' Value='PeDALS.Orchestrations.SplitMetadataMessage' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='SplitMetadataMessage' />
                                            <om:Property Name='Signal' Value='False' />
                                            <om:Element Type='Parameter' OID='0df8d428-749c-4a32-a700-43d95a5fdcde' ParentLink='InvokeStatement_Parameter'>
                                                <om:Property Name='Direction' Value='Out' />
                                                <om:Property Name='Name' Value='MetadataFileMsg' />
                                                <om:Property Name='Type' Value='PeDALS.Orchestrations.MetadataFileMessageType' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                            <om:Element Type='Parameter' OID='5fe33515-5488-47b6-aaf4-bcd9cd17d06c' ParentLink='InvokeStatement_Parameter'>
                                                <om:Property Name='Direction' Value='In' />
                                                <om:Property Name='Name' Value='MetadataMsg' />
                                                <om:Property Name='Type' Value='PeDALS.Orchestrations.MetadataMessageType' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                            <om:Element Type='Parameter' OID='bbffc625-6981-4c28-92c9-e6ac78569742' ParentLink='InvokeStatement_Parameter'>
                                                <om:Property Name='Direction' Value='In' />
                                                <om:Property Name='Name' Value='filePath' />
                                                <om:Property Name='Type' Value='System.String' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='Construct' OID='b57395e1-64e1-4fab-a29c-05a91cf87930' ParentLink='ComplexStatement_Statement' LowerBound='246.1' HigherBound='256.1'>
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='ConstructGovSpeechMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                            <om:Element Type='MessageRef' OID='9a4b5fe0-d3a8-4ca4-9f4e-790597f726a3' ParentLink='Construct_MessageRef' LowerBound='247.55' HigherBound='247.70'>
                                                <om:Property Name='Ref' Value='GovSpeechMsg' />
                                                <om:Property Name='ReportToAnalyst' Value='True' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                            <om:Element Type='MessageAssignment' OID='5f5c67b3-668c-49b6-b45b-df0525b1b600' ParentLink='ComplexStatement_Statement' LowerBound='249.1' HigherBound='255.1'>
                                                <om:Property Name='Expression' Value='fileName = filePath.Replace(&quot;data/&quot;,&quot;&quot;);&#xD;&#xA;&#xD;&#xA;xmlGovSpeechRootMsg = GovSpeechRootMsg.Body;  &#xD;&#xA;xmlTemp = PeDALS.Utilities.XmlHelper.GetNodeAsXML(xmlGovSpeechRootMsg, &quot;//GovSpeech[Filename=&apos;&quot; + fileName + &quot;&apos;]&quot;);&#xD;&#xA;GovSpeechMsg.Body = xmlTemp;' />
                                                <om:Property Name='ReportToAnalyst' Value='False' />
                                                <om:Property Name='Name' Value='AssignGovSpeechMsg' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='Construct' OID='5818b961-ab0b-4dc5-ac3e-dee032268d01' ParentLink='ComplexStatement_Statement' LowerBound='256.1' HigherBound='266.1'>
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='ConstructFinalAIPMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                            <om:Element Type='MessageRef' OID='e0621a43-08ca-489d-9f43-defee01c2d47' ParentLink='Construct_MessageRef' LowerBound='257.55' HigherBound='257.66'>
                                                <om:Property Name='Ref' Value='FinalAIPMsg' />
                                                <om:Property Name='ReportToAnalyst' Value='True' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                            <om:Element Type='Transform' OID='7626d9ef-d003-4ea3-af58-6782c0933483' ParentLink='ComplexStatement_Statement' LowerBound='259.1' HigherBound='261.1'>
                                                <om:Property Name='ClassName' Value='PeDALS.Apps.NM.GS.XForm.BaseAIP_GovSpeech_MetadataFile_ManifestFile_To_FinalAIP' />
                                                <om:Property Name='ReportToAnalyst' Value='True' />
                                                <om:Property Name='Name' Value='TransformBaseAIPGovSpeechMetadataFileManifestFileToFinalAIPMsg' />
                                                <om:Property Name='Signal' Value='True' />
                                                <om:Element Type='MessagePartRef' OID='07cc881a-f956-4d81-9ed2-5a3905833cad' ParentLink='Transform_InputMessagePartRef' LowerBound='260.165' HigherBound='260.180'>
                                                    <om:Property Name='MessageRef' Value='BaseAipMsg' />
                                                    <om:Property Name='PartRef' Value='Body' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='MessagePartReference_1' />
                                                    <om:Property Name='Signal' Value='False' />
                                                </om:Element>
                                                <om:Element Type='MessagePartRef' OID='f006d199-b8fd-40c0-8b9e-12fbde10b48c' ParentLink='Transform_InputMessagePartRef' LowerBound='260.182' HigherBound='260.202'>
                                                    <om:Property Name='MessageRef' Value='GovSpeechMsg' />
                                                    <om:Property Name='PartRef' Value='Body' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='MessagePartReference_2' />
                                                    <om:Property Name='Signal' Value='False' />
                                                </om:Element>
                                                <om:Element Type='MessagePartRef' OID='1548a549-d751-4fc0-b2db-f560804e3a1a' ParentLink='Transform_InputMessagePartRef' LowerBound='260.204' HigherBound='260.224'>
                                                    <om:Property Name='MessageRef' Value='MetadataFileMsg' />
                                                    <om:Property Name='PartRef' Value='Body' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='MessagePartReference_3' />
                                                    <om:Property Name='Signal' Value='False' />
                                                </om:Element>
                                                <om:Element Type='MessagePartRef' OID='1a11971c-4dab-46a7-89a5-124bc21840ad' ParentLink='Transform_InputMessagePartRef' LowerBound='260.226' HigherBound='260.246'>
                                                    <om:Property Name='MessageRef' Value='ManifestFileMsg' />
                                                    <om:Property Name='PartRef' Value='Body' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='MessagePartReference_5' />
                                                    <om:Property Name='Signal' Value='False' />
                                                </om:Element>
                                                <om:Element Type='MessagePartRef' OID='570b7331-ae53-4867-a3d8-54a480524923' ParentLink='Transform_OutputMessagePartRef' LowerBound='260.60' HigherBound='260.76'>
                                                    <om:Property Name='MessageRef' Value='FinalAIPMsg' />
                                                    <om:Property Name='PartRef' Value='Body' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='MessagePartReference_4' />
                                                    <om:Property Name='Signal' Value='False' />
                                                </om:Element>
                                            </om:Element>
                                            <om:Element Type='MessageAssignment' OID='26f01fd4-4cbb-4e16-8295-82941ff35af1' ParentLink='ComplexStatement_Statement' LowerBound='261.1' HigherBound='265.1'>
                                                <om:Property Name='Expression' Value='orgFileAsBase64 = PeDALS.Utilities.Base64.Encode.PdfFile(seriesAcquisitionDir + &quot;\\&quot; + filePath);&#xD;&#xA;xpath(FinalAIPMsg.Body, &quot;/*[local-name()=&apos;AIP&apos; and namespace-uri()=&apos;http://PeDALS&apos;]/*[local-name()=&apos;OriginalMetadata&apos; and namespace-uri()=&apos;&apos;]&quot;) = xmlTemp.OuterXml;&#xD;&#xA;xpath(FinalAIPMsg.Body, &quot;/*[local-name()=&apos;AIP&apos; and namespace-uri()=&apos;http://PeDALS&apos;]/*[local-name()=&apos;OriginalRecord&apos; and namespace-uri()=&apos;&apos;]&quot;) = orgFileAsBase64;&#xD;&#xA;' />
                                                <om:Property Name='ReportToAnalyst' Value='False' />
                                                <om:Property Name='Name' Value='AssignFinalAIPMsg' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='VariableAssignment' OID='a9a9ff78-931e-4f39-9c5b-a81b49484f07' ParentLink='ComplexStatement_Statement' LowerBound='266.1' HigherBound='272.1'>
                                            <om:Property Name='Expression' Value='compCount = 0;&#xD;&#xA;compRecCount = 1;&#xD;&#xA;compCount = PeDALS.Utilities.XmlHelper.GetNodeCount(FinalAIPMsg.Body, &quot;/*[local-name()=&apos;AIP&apos; and namespace-uri()=&apos;http://PeDALS&apos;]/*[local-name()=&apos;CoreMetadata&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Provenance&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Series&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Acquisition&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Item&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Component&apos; and namespace-uri()=&apos;&apos;]&quot;);&#xD;&#xA;&#xD;&#xA;xmlAIP = FinalAIPMsg.Body;&#xD;&#xA;' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='Get Components Count' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='Decision' OID='2a1cd66f-f19b-4fb6-a034-779f82728188' ParentLink='ComplexStatement_Statement' LowerBound='272.1' HigherBound='307.1'>
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='Check Attachments' />
                                            <om:Property Name='Signal' Value='True' />
                                            <om:Element Type='DecisionBranch' OID='6d8b15ab-4585-4e13-90df-802dc5a38738' ParentLink='ReallyComplexStatement_Branch' LowerBound='273.45' HigherBound='282.1'>
                                                <om:Property Name='Expression' Value='compCount == 0' />
                                                <om:Property Name='IsGhostBranch' Value='True' />
                                                <om:Property Name='ReportToAnalyst' Value='True' />
                                                <om:Property Name='Name' Value='No Attachments' />
                                                <om:Property Name='Signal' Value='True' />
                                                <om:Element Type='Construct' OID='c6187f20-00fe-48ef-9f1c-35153b5b247e' ParentLink='ComplexStatement_Statement' LowerBound='275.1' HigherBound='281.1'>
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='ConstructFinalAIPMsgWithComponents' />
                                                    <om:Property Name='Signal' Value='True' />
                                                    <om:Element Type='MessageRef' OID='e44fa4e7-91b6-4ab1-b316-a830f1d8e9c0' ParentLink='Construct_MessageRef' LowerBound='276.59' HigherBound='276.84'>
                                                        <om:Property Name='Ref' Value='FinalAIPMsgWithComponents' />
                                                        <om:Property Name='ReportToAnalyst' Value='True' />
                                                        <om:Property Name='Signal' Value='False' />
                                                    </om:Element>
                                                    <om:Element Type='MessageAssignment' OID='80c177b2-f889-4541-844f-f3e830cb9715' ParentLink='ComplexStatement_Statement' LowerBound='278.1' HigherBound='280.1'>
                                                        <om:Property Name='Expression' Value='FinalAIPMsgWithComponents = FinalAIPMsg;' />
                                                        <om:Property Name='ReportToAnalyst' Value='False' />
                                                        <om:Property Name='Name' Value='AssignFinalAIPMsgWithComponents' />
                                                        <om:Property Name='Signal' Value='True' />
                                                    </om:Element>
                                                </om:Element>
                                            </om:Element>
                                            <om:Element Type='DecisionBranch' OID='b6d5cc31-c148-4bb2-b118-36e8f637f6c8' ParentLink='ReallyComplexStatement_Branch'>
                                                <om:Property Name='IsGhostBranch' Value='True' />
                                                <om:Property Name='ReportToAnalyst' Value='True' />
                                                <om:Property Name='Name' Value='Else' />
                                                <om:Property Name='Signal' Value='False' />
                                                <om:Element Type='While' OID='1766ed84-2388-458f-9ba2-3496445c4dec' ParentLink='ComplexStatement_Statement' LowerBound='284.1' HigherBound='300.1'>
                                                    <om:Property Name='Expression' Value='compRecCount &lt;= compCount ' />
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='Loop Components' />
                                                    <om:Property Name='Signal' Value='False' />
                                                    <om:Element Type='VariableAssignment' OID='a5216cf3-1f19-465b-9963-db3ff325c55f' ParentLink='ComplexStatement_Statement' LowerBound='287.1' HigherBound='299.1'>
                                                        <om:Property Name='Expression' Value='myXPath = System.String.Format(&quot;/*[local-name()=&apos;AIP&apos; and namespace-uri()=&apos;http://PeDALS&apos;]/*[local-name()=&apos;CoreMetadata&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Provenance&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Series&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Acquisition&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Item&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Component&apos; and namespace-uri()=&apos;&apos;][{0}]/@*[local-name()=&apos;FileName&apos; and namespace-uri()=&apos;&apos;]&quot;, compRecCount);&#xD;&#xA;&#xD;&#xA;compFileMainName =  filePath.Replace(&quot;.pdf&quot;,&quot;&quot;);&#xD;&#xA;compFileMainName = compFileMainName.Replace(@&quot;\&quot;,@&quot;/&quot;);&#xD;&#xA;compFileName = PeDALS.Utilities.XmlHelper.GetAnyTypeValue(FinalAIPMsg.Body,myXPath);&#xD;&#xA;compFileName = PeDALS.Utilities.FileHelper.GetFileNameFromPath(compFileMainName) + &quot;-&quot; + compFileName;&#xD;&#xA;&#xD;&#xA;myXPath = System.String.Format(&quot;/*[local-name()=&apos;AIP&apos; and namespace-uri()=&apos;http://PeDALS&apos;]/*[local-name()=&apos;CoreMetadata&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Provenance&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Series&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Acquisition&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Item&apos; and namespace-uri()=&apos;&apos;]/*[local-name()=&apos;Component&apos; and namespace-uri()=&apos;&apos;][{0}]&quot;,compRecCount);&#xD;&#xA;xmlAIP = PeDALS.Utilities.XmlHelper.CreateAIPWithNZMEData(xmlAIP,myXPath,PeDALS.Utilities.XmlHelper.GetNZMEFileData(MetadataMsg.Body,&quot;//File[Filename/Name=&apos;&quot; + compFileName + &quot;&apos;]&quot;,&quot;Size&quot;),PeDALS.Utilities.XmlHelper.GetNZMEFileData(MetadataMsg.Body,&quot;//File[Filename/Name=&apos;&q"+
@"uot; + compFileName + &quot;&apos;]&quot;,&quot;Extension&quot;), PeDALS.Utilities.XmlHelper.GetNZMEFileData(MetadataMsg.Body,&quot;//File[Filename/Name=&apos;&quot; + compFileName + &quot;&apos;]&quot;,&quot;Format&quot;));   &#xD;&#xA;&#xD;&#xA;compRecCount = compRecCount + 1;&#xD;&#xA;' />
                                                        <om:Property Name='ReportToAnalyst' Value='True' />
                                                        <om:Property Name='Name' Value='Set Component Metadata' />
                                                        <om:Property Name='Signal' Value='False' />
                                                    </om:Element>
                                                </om:Element>
                                                <om:Element Type='Construct' OID='10adc7a7-521f-4e18-954d-d77873ef3b77' ParentLink='ComplexStatement_Statement' LowerBound='300.1' HigherBound='306.1'>
                                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                                    <om:Property Name='Name' Value='ConstructFinalAIPMsgWithComponents' />
                                                    <om:Property Name='Signal' Value='True' />
                                                    <om:Element Type='MessageRef' OID='047a59a7-2f0b-400f-9f7c-9235ca97a75c' ParentLink='Construct_MessageRef' LowerBound='301.59' HigherBound='301.84'>
                                                        <om:Property Name='Ref' Value='FinalAIPMsgWithComponents' />
                                                        <om:Property Name='ReportToAnalyst' Value='True' />
                                                        <om:Property Name='Signal' Value='False' />
                                                    </om:Element>
                                                    <om:Element Type='MessageAssignment' OID='5eb129bc-2431-47c2-82b9-d4e9bd9a56e1' ParentLink='ComplexStatement_Statement' LowerBound='303.1' HigherBound='305.1'>
                                                        <om:Property Name='Expression' Value='FinalAIPMsgWithComponents.Body = xmlAIP;' />
                                                        <om:Property Name='ReportToAnalyst' Value='False' />
                                                        <om:Property Name='Name' Value='AssignFinalAIPMsgWithComponents' />
                                                        <om:Property Name='Signal' Value='True' />
                                                    </om:Element>
                                                </om:Element>
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='Call' OID='7a1be33a-d170-49d8-b914-15f9539f3bca' ParentLink='ComplexStatement_Statement' LowerBound='307.1' HigherBound='309.1'>
                                            <om:Property Name='Identifier' Value='SetInitialValues' />
                                            <om:Property Name='Invokee' Value='PeDALS.Orchestrations.SetInitialValues' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='SetInitialValues' />
                                            <om:Property Name='Signal' Value='False' />
                                            <om:Element Type='Parameter' OID='17a598cd-798a-461b-95c6-fef4331d2ed1' ParentLink='InvokeStatement_Parameter'>
                                                <om:Property Name='Direction' Value='In' />
                                                <om:Property Name='Name' Value='FinalAIPMsgWithComponents' />
                                                <om:Property Name='Type' Value='PeDALS.Orchestrations.AchivalIngestPackageMessageType' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='Call' OID='e44fb85c-f0d0-40ba-9639-86b316f5af71' ParentLink='ComplexStatement_Statement' LowerBound='309.1' HigherBound='311.1'>
                                            <om:Property Name='Identifier' Value='CallInsertAip' />
                                            <om:Property Name='Invokee' Value='PeDALS.Orchestrations.InsertAIP' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='CallInsertAip' />
                                            <om:Property Name='Signal' Value='True' />
                                            <om:Element Type='Parameter' OID='3c18cdad-7556-4b6d-8101-145b5ebf6c00' ParentLink='InvokeStatement_Parameter'>
                                                <om:Property Name='Direction' Value='In' />
                                                <om:Property Name='Name' Value='FinalAIPMsgWithComponents' />
                                                <om:Property Name='Type' Value='PeDALS.Orchestrations.AchivalIngestPackageMessageType' />
                                                <om:Property Name='Signal' Value='False' />
                                            </om:Element>
                                        </om:Element>
                                        <om:Element Type='MessageDeclaration' OID='662b07b7-b01d-4043-987e-17fcab27e29e' ParentLink='Scope_MessageDeclaration' LowerBound='220.1' HigherBound='221.1'>
                                            <om:Property Name='Type' Value='PeDALS.Orchestrations.MetadataFileMessageType' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='MetadataFileMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='MessageDeclaration' OID='7590675b-a49a-4343-851e-de54e4b582b6' ParentLink='Scope_MessageDeclaration' LowerBound='221.1' HigherBound='222.1'>
                                            <om:Property Name='Type' Value='PeDALS.Orchestrations.AIPMessageType' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='FinalAIPMsgWithComponents' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='MessageDeclaration' OID='393ec0ce-2f07-4107-ac74-3824039ab9c9' ParentLink='Scope_MessageDeclaration' LowerBound='222.1' HigherBound='223.1'>
                                            <om:Property Name='Type' Value='PeDALS.Orchestrations.AIPMessageType' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='FinalAIPMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                        <om:Element Type='MessageDeclaration' OID='4739cd90-52f0-4972-813f-23ebe36be659' ParentLink='Scope_MessageDeclaration' LowerBound='223.1' HigherBound='224.1'>
                                            <om:Property Name='Type' Value='PeDALS.Apps.NM.GS.Orchestrations.DescMetaItemMessageType' />
                                            <om:Property Name='ParamDirection' Value='In' />
                                            <om:Property Name='ReportToAnalyst' Value='True' />
                                            <om:Property Name='Name' Value='GovSpeechMsg' />
                                            <om:Property Name='Signal' Value='True' />
                                        </om:Element>
                                    </om:Element>
                                </om:Element>
                                <om:Element Type='DecisionBranch' OID='c9bcb2cc-74e5-4717-b140-c79fb8005cd9' ParentLink='ReallyComplexStatement_Branch'>
                                    <om:Property Name='IsGhostBranch' Value='True' />
                                    <om:Property Name='ReportToAnalyst' Value='True' />
                                    <om:Property Name='Name' Value='Else' />
                                    <om:Property Name='Signal' Value='False' />
                                </om:Element>
                            </om:Element>
                        </om:Element>
                        <om:Element Type='VariableAssignment' OID='f302e551-0819-460d-8a45-cda108fc0e98' ParentLink='ComplexStatement_Statement' LowerBound='316.1' HigherBound='318.1'>
                            <om:Property Name='Expression' Value='recCount = recCount + 1;&#xD;&#xA;' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Name' Value='IncrementRecordCount' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                    </om:Element>
                    <om:Element Type='Construct' OID='f1fea58b-01b0-4ebd-ac91-86480dbcd379' ParentLink='ComplexStatement_Statement' LowerBound='319.1' HigherBound='332.1'>
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='ConstructManifestCompleteMsg' />
                        <om:Property Name='Signal' Value='True' />
                        <om:Element Type='MessageRef' OID='710b999c-3f4e-4181-a985-68cb71686217' ParentLink='Construct_MessageRef' LowerBound='320.31' HigherBound='320.50'>
                            <om:Property Name='Ref' Value='ManifestCompleteMsg' />
                            <om:Property Name='ReportToAnalyst' Value='True' />
                            <om:Property Name='Signal' Value='False' />
                        </om:Element>
                        <om:Element Type='MessageAssignment' OID='dfe90c76-1fa6-4fc3-97ec-bc932e8cfbb8' ParentLink='ComplexStatement_Statement' LowerBound='322.1' HigherBound='331.1'>
                            <om:Property Name='Expression' Value='doc = new System.Xml.XmlDocument();&#xD;&#xA;doc.LoadXml(&quot;&lt;ns0:Manifest xmlns:ns0=\&quot;http://PeDALS\&quot;&quot;&#xD;&#xA;            + &quot; SeriesAcquisitionId=\&quot;&quot; + seriesAcquisitionId.ToString() + &quot;\&quot;&quot;&#xD;&#xA;            + &quot; SeriesId=\&quot;&quot; + seriesId.ToString() + &quot;\&quot;&quot;&#xD;&#xA;            + &quot; SuperPackageId=\&quot;&quot; + superPackageId + &quot;\&quot;&quot;&#xD;&#xA;            + &quot; SeriesAcquisitionDir=\&quot;&quot; + seriesAcquisitionDir + &quot;\&quot;/&gt;&quot;);&#xD;&#xA;    &#xD;&#xA;ManifestCompleteMsg.Body = doc;&#xD;&#xA;' />
                            <om:Property Name='ReportToAnalyst' Value='False' />
                            <om:Property Name='Name' Value='AssignManifestCompleteMsg' />
                            <om:Property Name='Signal' Value='True' />
                        </om:Element>
                    </om:Element>
                    <om:Element Type='Send' OID='891b7d93-eb0c-4709-a9b8-516cc8a1e28e' ParentLink='ComplexStatement_Statement' LowerBound='332.1' HigherBound='334.1'>
                        <om:Property Name='PortName' Value='SendManifestCompletePort' />
                        <om:Property Name='MessageName' Value='ManifestCompleteMsg' />
                        <om:Property Name='OperationName' Value='SendManifestComplete' />
                        <om:Property Name='OperationMessageName' Value='request' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='SendManifestComplete' />
                        <om:Property Name='Signal' Value='True' />
                    </om:Element>
                    <om:Element Type='MessageDeclaration' OID='95cac4bf-d93a-478e-9a53-84822e7ddc8d' ParentLink='Scope_MessageDeclaration' LowerBound='174.1' HigherBound='175.1'>
                        <om:Property Name='Type' Value='PeDALS.Orchestrations.ManifestFileMessageType' />
                        <om:Property Name='ParamDirection' Value='In' />
                        <om:Property Name='ReportToAnalyst' Value='True' />
                        <om:Property Name='Name' Value='ManifestFileMsg' />
                        <om:Property Name='Signal' Value='True' />
                    </om:Element>
                </om:Element>
            </om:Element>
            <om:Element Type='PortDeclaration' OID='635a27ca-5303-4f3f-a0d4-5604f1ebf0dd' ParentLink='ServiceDeclaration_PortDeclaration' LowerBound='26.1' HigherBound='28.1'>
                <om:Property Name='PortModifier' Value='Implements' />
                <om:Property Name='Orientation' Value='Left' />
                <om:Property Name='PortIndex' Value='6' />
                <om:Property Name='IsWebPort' Value='False' />
                <om:Property Name='OrderedDelivery' Value='False' />
                <om:Property Name='DeliveryNotification' Value='None' />
                <om:Property Name='Type' Value='PeDALS.Orchestrations.ReceiveManifestPortType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ReceiveManifestPort' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='LogicalBindingAttribute' OID='c60670df-4aae-4c52-bc22-e361d5ebd02c' ParentLink='PortDeclaration_CLRAttribute' LowerBound='26.1' HigherBound='27.1'>
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
            <om:Element Type='PortDeclaration' OID='539ba949-b94b-488d-975e-76293486b0c7' ParentLink='ServiceDeclaration_PortDeclaration' LowerBound='28.1' HigherBound='30.1'>
                <om:Property Name='PortModifier' Value='Uses' />
                <om:Property Name='Orientation' Value='Right' />
                <om:Property Name='PortIndex' Value='49' />
                <om:Property Name='IsWebPort' Value='False' />
                <om:Property Name='OrderedDelivery' Value='False' />
                <om:Property Name='DeliveryNotification' Value='None' />
                <om:Property Name='Type' Value='PeDALS.Orchestrations.SendNotificationPortType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='SendNotificationPort' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='DirectBindingAttribute' OID='9af463c9-eb91-46fc-94b7-cbb2eebcd34a' ParentLink='PortDeclaration_CLRAttribute' LowerBound='28.1' HigherBound='29.1'>
                    <om:Property Name='DirectBindingType' Value='MessageBox' />
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
            <om:Element Type='PortDeclaration' OID='069b12c2-a957-4c70-a9f3-36de6fff0cfa' ParentLink='ServiceDeclaration_PortDeclaration' LowerBound='30.1' HigherBound='32.1'>
                <om:Property Name='PortModifier' Value='Implements' />
                <om:Property Name='Orientation' Value='Right' />
                <om:Property Name='PortIndex' Value='1' />
                <om:Property Name='IsWebPort' Value='False' />
                <om:Property Name='OrderedDelivery' Value='False' />
                <om:Property Name='DeliveryNotification' Value='None' />
                <om:Property Name='Type' Value='PeDALS.Orchestrations.ReceiveMetadataPortType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ReceiveMetadataPort' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='LogicalBindingAttribute' OID='cb1ac121-eeda-4eaa-a669-1ae616ee1a91' ParentLink='PortDeclaration_CLRAttribute' LowerBound='30.1' HigherBound='31.1'>
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
            <om:Element Type='PortDeclaration' OID='1207b112-f8eb-4226-a331-27fc30703340' ParentLink='ServiceDeclaration_PortDeclaration' LowerBound='32.1' HigherBound='34.1'>
                <om:Property Name='PortModifier' Value='Implements' />
                <om:Property Name='Orientation' Value='Right' />
                <om:Property Name='PortIndex' Value='2' />
                <om:Property Name='IsWebPort' Value='False' />
                <om:Property Name='OrderedDelivery' Value='False' />
                <om:Property Name='DeliveryNotification' Value='None' />
                <om:Property Name='Type' Value='PeDALS.Apps.NM.GS.Orchestrations.ReceiveDescMetaPortType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ReceiveDescMetaPort' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='LogicalBindingAttribute' OID='7714d0d8-2c3a-48ae-a5eb-cc50add390d1' ParentLink='PortDeclaration_CLRAttribute' LowerBound='32.1' HigherBound='33.1'>
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
            <om:Element Type='PortDeclaration' OID='15d820bd-6543-4900-aa6e-b8328e2c83b1' ParentLink='ServiceDeclaration_PortDeclaration' LowerBound='34.1' HigherBound='36.1'>
                <om:Property Name='PortModifier' Value='Uses' />
                <om:Property Name='Orientation' Value='Right' />
                <om:Property Name='PortIndex' Value='272' />
                <om:Property Name='IsWebPort' Value='False' />
                <om:Property Name='OrderedDelivery' Value='False' />
                <om:Property Name='DeliveryNotification' Value='None' />
                <om:Property Name='Type' Value='PeDALS.Orchestrations.SendManifestCompletePortType' />
                <om:Property Name='ParamDirection' Value='In' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='SendManifestCompletePort' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='DirectBindingAttribute' OID='0b0a5a6d-3d6c-4b02-899e-660d9323d998' ParentLink='PortDeclaration_CLRAttribute' LowerBound='34.1' HigherBound='35.1'>
                    <om:Property Name='DirectBindingType' Value='MessageBox' />
                    <om:Property Name='Signal' Value='False' />
                </om:Element>
            </om:Element>
        </om:Element>
        <om:Element Type='CorrelationType' OID='b3fd0ee8-e295-4d26-9b46-c6e743216ea2' ParentLink='Module_CorrelationType' LowerBound='19.1' HigherBound='23.1'>
            <om:Property Name='TypeModifier' Value='Internal' />
            <om:Property Name='ReportToAnalyst' Value='True' />
            <om:Property Name='Name' Value='ReceivePortIdCorrelationType' />
            <om:Property Name='Signal' Value='True' />
            <om:Element Type='PropertyRef' OID='750b020a-e578-4735-8343-73a89ecfd667' ParentLink='CorrelationType_PropertyRef' LowerBound='21.9' HigherBound='21.26'>
                <om:Property Name='Ref' Value='BTS.ReceivePortID' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='PropertyRef_1' />
                <om:Property Name='Signal' Value='False' />
            </om:Element>
        </om:Element>
        <om:Element Type='PortType' OID='f5e8efdd-333d-4901-8fd6-8984d4e85c77' ParentLink='Module_PortType' LowerBound='12.1' HigherBound='19.1'>
            <om:Property Name='Synchronous' Value='False' />
            <om:Property Name='TypeModifier' Value='Internal' />
            <om:Property Name='ReportToAnalyst' Value='True' />
            <om:Property Name='Name' Value='ReceiveDescMetaPortType' />
            <om:Property Name='Signal' Value='True' />
            <om:Element Type='OperationDeclaration' OID='8071c1e7-9228-4e6d-91b8-4ad759d9f555' ParentLink='PortType_OperationDeclaration' LowerBound='14.1' HigherBound='18.1'>
                <om:Property Name='OperationType' Value='OneWay' />
                <om:Property Name='ReportToAnalyst' Value='True' />
                <om:Property Name='Name' Value='ReceiveDescMeta' />
                <om:Property Name='Signal' Value='True' />
                <om:Element Type='MessageRef' OID='13a7c2a3-5ff2-4216-b749-1ff2fcc24939' ParentLink='OperationDeclaration_RequestMessageRef' LowerBound='16.13' HigherBound='16.43'>
                    <om:Property Name='Ref' Value='PeDALS.Apps.NM.GS.Orchestrations.DescMetaMessageType' />
                    <om:Property Name='ReportToAnalyst' Value='True' />
                    <om:Property Name='Name' Value='request' />
                    <om:Property Name='Signal' Value='True' />
                </om:Element>
            </om:Element>
        </om:Element>
    </om:Element>
</om:MetaModel>
";

        [System.SerializableAttribute]
        public class __GovernorSpeeches_root_0 : Microsoft.XLANGs.Core.ServiceContext
        {
            public __GovernorSpeeches_root_0(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "GovernorSpeeches")
            {
            }

            public override int Index { get { return 0; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[0]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[0]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)(__svc__._stateMgrs[0]);

                if (__svc__.ReceiveDescMetaPort != null)
                {
                    __svc__.ReceiveDescMetaPort.Close(this, null);
                    __svc__.ReceiveDescMetaPort = null;
                }
                if (__svc__.SendNotificationPort != null)
                {
                    __svc__.SendNotificationPort.Close(this, null);
                    __svc__.SendNotificationPort = null;
                }
                if (__svc__.SendManifestCompletePort != null)
                {
                    __svc__.SendManifestCompletePort.Close(this, null);
                    __svc__.SendManifestCompletePort = null;
                }
                if (__svc__.ReceiveMetadataPort != null)
                {
                    __svc__.ReceiveMetadataPort.Close(this, null);
                    __svc__.ReceiveMetadataPort = null;
                }
                if (__svc__.ReceiveManifestPort != null)
                {
                    __svc__.ReceiveManifestPort.Close(this, null);
                    __svc__.ReceiveManifestPort = null;
                }
                base.Finally();
            }

            internal Microsoft.XLANGs.Core.SubscriptionWrapper __subWrapper0;
            internal Microsoft.XLANGs.Core.SubscriptionWrapper __subWrapper1;
            internal Microsoft.XLANGs.Core.SubscriptionWrapper __subWrapper2;
        }


        [System.SerializableAttribute]
        public class __GovernorSpeeches_1 : Microsoft.XLANGs.Core.LongRunningTransaction
        {
            public __GovernorSpeeches_1(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "GovernorSpeeches")
            {
            }

            public override int Index { get { return 1; } }

            public override bool CombineParentCommit { get { return true; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[1]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[1]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)(__svc__._stateMgrs[1]);
                __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)(__svc__._stateMgrs[8]);

                if (__ctx1__ != null && __ctx1__.__ManifestCompleteMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestCompleteMsg);
                    __ctx1__.__ManifestCompleteMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__ReceivePortId != null)
                    __ctx1__.__ReceivePortId = null;
                if (__ctx8__ != null && __ctx8__.__ManifestCompleteMsg != null)
                {
                    __ctx8__.UnrefMessage(__ctx8__.__ManifestCompleteMsg);
                    __ctx8__.__ManifestCompleteMsg = null;
                }
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("ManifestCompleteMsg")]
            internal PeDALS.Orchestrations.ManifestCompleteMessageType __ManifestCompleteMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("BaseAipMsg")]
            internal PeDALS.Orchestrations.AIPMessageType __BaseAipMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("ManifestMsg")]
            internal PeDALS.Orchestrations.ManifestMessageType __ManifestMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("MetadataMsg")]
            internal PeDALS.Orchestrations.MetadataMessageType __MetadataMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("GovSpeechRootMsg")]
            internal DescMetaMessageType __GovSpeechRootMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("ReceivePortId")]
            internal Microsoft.XLANGs.Core.Correlation __ReceivePortId;
            [Microsoft.XLANGs.Core.UserVariableAttribute("descMetaCount")]
            internal System.Int32 __descMetaCount;
            [Microsoft.XLANGs.Core.UserVariableAttribute("doc")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __doc;
            [Microsoft.XLANGs.Core.UserVariableAttribute("seriesAcquisitionDir")]
            internal System.String __seriesAcquisitionDir;
            [Microsoft.XLANGs.Core.UserVariableAttribute("superPackageId")]
            internal System.String __superPackageId;
            [Microsoft.XLANGs.Core.UserVariableAttribute("seriesId")]
            internal System.Int32 __seriesId;
            [Microsoft.XLANGs.Core.UserVariableAttribute("seriesAcquisitionId")]
            internal System.Int32 __seriesAcquisitionId;
            [Microsoft.XLANGs.Core.UserVariableAttribute("metadataCount")]
            internal System.Int32 __metadataCount;
            [Microsoft.XLANGs.Core.UserVariableAttribute("manifestCount")]
            internal System.Int32 __manifestCount;
        }


        [System.SerializableAttribute]
        public class ____scope33_2 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope33_2(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope33")
            {
            }

            public override int Index { get { return 2; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[3]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[3]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope33_2 __ctx2__ = (____scope33_2)(__svc__._stateMgrs[2]);

                if (__ctx2__ != null)
                    __ctx2__.__manifestXml = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("manifestXml")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __manifestXml;
        }


        [System.SerializableAttribute]
        public class ____scope34_3 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope34_3(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope34")
            {
            }

            public override int Index { get { return 3; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[5]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[5]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope34_3 __ctx3__ = (____scope34_3)(__svc__._stateMgrs[3]);

                if (__ctx3__ != null)
                    __ctx3__.__metadataXml = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("metadataXml")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __metadataXml;
        }


        [System.SerializableAttribute]
        public class ____scope35_4 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope35_4(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope35")
            {
            }

            public override int Index { get { return 4; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[7]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[7]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope35_4 __ctx4__ = (____scope35_4)(__svc__._stateMgrs[4]);

                if (__ctx4__ != null)
                    __ctx4__.__GovSpeechRootXml = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("GovSpeechRootXml")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __GovSpeechRootXml;
        }


        [System.SerializableAttribute]
        public class ____scope36_5 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope36_5(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope36")
            {
            }

            public override int Index { get { return 5; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[8]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[8]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope36_5 __ctx5__ = (____scope36_5)(__svc__._stateMgrs[5]);

                if (__ctx5__ != null && __ctx5__.__NotificationMsg != null)
                {
                    __ctx5__.UnrefMessage(__ctx5__.__NotificationMsg);
                    __ctx5__.__NotificationMsg = null;
                }
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("NotificationMsg")]
            public __messagetype_System_Xml_XmlDocument __NotificationMsg;
        }


        [System.SerializableAttribute]
        public class ____scope37_6 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope37_6(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope37")
            {
            }

            public override int Index { get { return 6; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[9]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[9]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                base.Finally();
            }

        }


        [System.SerializableAttribute]
        public class ____scope40_7 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope40_7(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope40")
            {
            }

            public override int Index { get { return 7; } }

            public override bool CombineParentCommit { get { return true; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[10]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[10]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Microsoft.XLANGs.Core.Segment __seg__;
                Microsoft.XLANGs.Core.FaultReceiveException __fault__;

                __exv__ = _exception;
                if (!(__exv__ is Microsoft.XLANGs.Core.UnknownException))
                {
                    __fault__ = __exv__ as Microsoft.XLANGs.Core.FaultReceiveException;
                    if ((__fault__ == null) && (__exv__ is System.NullReferenceException))
                    {
                        __seg__ = _service._segments[11];
                        __seg__.Reset(1);
                        __seg__.PredecessorDone(_service);
                        return true;
                    }
                    if ((__fault__ == null) && (__exv__ is System.InvalidCastException))
                    {
                        __seg__ = _service._segments[12];
                        __seg__.Reset(1);
                        __seg__.PredecessorDone(_service);
                        return true;
                    }
                }

                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope40_7 __ctx7__ = (____scope40_7)(__svc__._stateMgrs[7]);

                if (__ctx7__ != null)
                    __ctx7__.__ex_0 = null;
                if (__ctx7__ != null)
                    __ctx7__.__ex_1 = null;
                base.Finally();
            }

            internal object __exv__;
            internal System.NullReferenceException __ex_0
            {
                get { return (System.NullReferenceException)__exv__; }
                set { __exv__ = value; }
            }
            internal System.InvalidCastException __ex_1
            {
                get { return (System.InvalidCastException)__exv__; }
                set { __exv__ = value; }
            }
        }


        [System.SerializableAttribute]
        public class __SplitFilesTransaction_8 : Microsoft.XLANGs.Core.LongRunningTransaction
        {
            public __SplitFilesTransaction_8(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "SplitFilesTransaction")
            {
            }

            public override int Index { get { return 8; } }

            public override bool CombineParentCommit { get { return true; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[13]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[13]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)(__svc__._stateMgrs[1]);
                __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)(__svc__._stateMgrs[8]);

                if (__ctx1__.__ManifestCompleteMsg != null)
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestCompleteMsg);
                __ctx1__.__ManifestCompleteMsg = __ctx8__.__ManifestCompleteMsg;
                if (__ctx8__.__ManifestCompleteMsg != null)
                    __ctx1__.RefMessage(__ctx1__.__ManifestCompleteMsg);
                if (__ctx1__ != null && __ctx1__.__MetadataMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__MetadataMsg);
                    __ctx1__.__MetadataMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__ManifestMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestMsg);
                    __ctx1__.__ManifestMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__BaseAipMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__BaseAipMsg);
                    __ctx1__.__BaseAipMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__GovSpeechRootMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__GovSpeechRootMsg);
                    __ctx1__.__GovSpeechRootMsg = null;
                }
                if (__ctx1__ != null)
                    __ctx1__.__doc = null;
                if (__ctx1__ != null)
                    __ctx1__.__seriesAcquisitionDir = null;
                if (__ctx1__ != null)
                    __ctx1__.__superPackageId = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("ManifestCompleteMsg")]
            internal PeDALS.Orchestrations.ManifestCompleteMessageType __ManifestCompleteMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("ManifestFileMsg")]
            internal PeDALS.Orchestrations.ManifestFileMessageType __ManifestFileMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("recCount")]
            internal System.Int32 __recCount;
        }


        [System.SerializableAttribute]
        public class ____scope41_9 : Microsoft.XLANGs.Core.ExceptionHandlingContext
        {
            public ____scope41_9(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "??__scope41")
            {
            }

            public override int Index { get { return 9; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[14]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[14]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                ____scope41_9 __ctx9__ = (____scope41_9)(__svc__._stateMgrs[9]);

                if (__ctx9__ != null)
                    __ctx9__.__xmlManifestFile = null;
                if (__ctx9__ != null)
                    __ctx9__.__xmlManifest = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("xmlManifest")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __xmlManifest;
            [Microsoft.XLANGs.Core.UserVariableAttribute("xmlManifestFile")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __xmlManifestFile;
        }


        [System.SerializableAttribute]
        public class __SplitMetadataTransaction_10 : Microsoft.XLANGs.Core.LongRunningTransaction
        {
            public __SplitMetadataTransaction_10(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "SplitMetadataTransaction")
            {
            }

            public override int Index { get { return 10; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[15]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[15]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)(__svc__._stateMgrs[8]);
                __CreateFinalAIPTransaction_11 __ctx11__ = (__CreateFinalAIPTransaction_11)(__svc__._stateMgrs[11]);
                __SplitMetadataTransaction_10 __ctx10__ = (__SplitMetadataTransaction_10)(__svc__._stateMgrs[10]);

                if (__ctx8__ != null && __ctx8__.__ManifestFileMsg != null)
                {
                    __ctx8__.UnrefMessage(__ctx8__.__ManifestFileMsg);
                    __ctx8__.__ManifestFileMsg = null;
                }
                if (__ctx11__ != null)
                    __ctx11__.__filePath = null;
                if (__ctx10__ != null)
                    __ctx10__.__filePath = null;
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("filePath")]
            internal System.String __filePath;
        }


        [System.SerializableAttribute]
        public class __CreateFinalAIPTransaction_11 : Microsoft.XLANGs.Core.LongRunningTransaction
        {
            public __CreateFinalAIPTransaction_11(Microsoft.XLANGs.Core.Service svc)
                : base(svc, "CreateFinalAIPTransaction")
            {
            }

            public override int Index { get { return 11; } }

            public override bool CombineParentCommit { get { return true; } }

            public override Microsoft.XLANGs.Core.Segment InitialSegment
            {
                get { return _service._segments[16]; }
            }
            public override Microsoft.XLANGs.Core.Segment FinalSegment
            {
                get { return _service._segments[16]; }
            }

            public override int CompensationSegment { get { return -1; } }
            public override bool OnError()
            {
                Finally();
                return false;
            }

            public override void Finally()
            {
                GovernorSpeeches __svc__ = (GovernorSpeeches)_service;
                __CreateFinalAIPTransaction_11 __ctx11__ = (__CreateFinalAIPTransaction_11)(__svc__._stateMgrs[11]);
                __SplitMetadataTransaction_10 __ctx10__ = (__SplitMetadataTransaction_10)(__svc__._stateMgrs[10]);

                __ctx10__.__filePath = __ctx11__.__filePath;
                if (__ctx11__ != null)
                    __ctx11__.__compFileMainName = null;
                if (__ctx11__ != null)
                    __ctx11__.__xmlAIP = null;
                if (__ctx11__ != null)
                    __ctx11__.__compFileName = null;
                if (__ctx11__ != null)
                    __ctx11__.__xmlTemp = null;
                if (__ctx11__ != null)
                    __ctx11__.__orgFileAsBase64 = null;
                if (__ctx11__ != null)
                    __ctx11__.__myXPath = null;
                if (__ctx11__ != null)
                    __ctx11__.__xmlGovSpeechRootMsg = null;
                if (__ctx11__ != null)
                    __ctx11__.__fileName = null;
                if (__ctx11__ != null && __ctx11__.__FinalAIPMsgWithComponents != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                    __ctx11__.__FinalAIPMsgWithComponents = null;
                }
                if (__ctx11__ != null && __ctx11__.__FinalAIPMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsg);
                    __ctx11__.__FinalAIPMsg = null;
                }
                if (__ctx11__ != null && __ctx11__.__GovSpeechMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__GovSpeechMsg);
                    __ctx11__.__GovSpeechMsg = null;
                }
                if (__ctx11__ != null && __ctx11__.__MetadataFileMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__MetadataFileMsg);
                    __ctx11__.__MetadataFileMsg = null;
                }
                base.Finally();
            }

            [Microsoft.XLANGs.Core.UserVariableAttribute("MetadataFileMsg")]
            internal PeDALS.Orchestrations.MetadataFileMessageType __MetadataFileMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("FinalAIPMsgWithComponents")]
            internal PeDALS.Orchestrations.AIPMessageType __FinalAIPMsgWithComponents;
            [Microsoft.XLANGs.Core.UserVariableAttribute("FinalAIPMsg")]
            internal PeDALS.Orchestrations.AIPMessageType __FinalAIPMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("GovSpeechMsg")]
            internal DescMetaItemMessageType __GovSpeechMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("filePath")]
            internal System.String __filePath;
            [Microsoft.XLANGs.Core.UserVariableAttribute("xmlGovSpeechRootMsg")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __xmlGovSpeechRootMsg;
            [Microsoft.XLANGs.Core.UserVariableAttribute("fileName")]
            internal System.String __fileName;
            [Microsoft.XLANGs.Core.UserVariableAttribute("orgFileAsBase64")]
            internal System.String __orgFileAsBase64;
            [Microsoft.XLANGs.Core.UserVariableAttribute("myXPath")]
            internal System.String __myXPath;
            [Microsoft.XLANGs.Core.UserVariableAttribute("xmlTemp")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __xmlTemp;
            [Microsoft.XLANGs.Core.UserVariableAttribute("compCount")]
            internal System.Int32 __compCount;
            [Microsoft.XLANGs.Core.UserVariableAttribute("compFileName")]
            internal System.String __compFileName;
            [Microsoft.XLANGs.Core.UserVariableAttribute("compRecCount")]
            internal System.Int32 __compRecCount;
            [Microsoft.XLANGs.Core.UserVariableAttribute("compFileMainName")]
            internal System.String __compFileMainName;
            [Microsoft.XLANGs.Core.UserVariableAttribute("xmlAIP")]
            internal Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy __xmlAIP;
        }

        private static Microsoft.XLANGs.Core.CorrelationType[] _correlationTypes = new Microsoft.XLANGs.Core.CorrelationType[] { new ReceivePortIdCorrelationType() };
        public override Microsoft.XLANGs.Core.CorrelationType[] CorrelationTypes { get { return _correlationTypes; } }

        private static System.Guid[] _convoySetIds;

        public override System.Guid[] ConvoySetGuids
        {
            get { return _convoySetIds; }
            set { _convoySetIds = value; }
        }

        public static object[] StaticConvoySetInformation
        {
            get {
                return new object[] {
                    new Microsoft.XLANGs.Core.CorrelationType[] { _correlationTypes[0] }
                };
            }
        }

        [Microsoft.XLANGs.BaseTypes.LogicalBindingAttribute()]
        [Microsoft.XLANGs.BaseTypes.PortAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements
        )]
        [Microsoft.XLANGs.Core.UserVariableAttribute("ReceiveManifestPort")]
        internal PeDALS.Orchestrations.ReceiveManifestPortType ReceiveManifestPort;
        [Microsoft.XLANGs.BaseTypes.LogicalBindingAttribute()]
        [Microsoft.XLANGs.BaseTypes.PortAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements
        )]
        [Microsoft.XLANGs.Core.UserVariableAttribute("ReceiveMetadataPort")]
        internal PeDALS.Orchestrations.ReceiveMetadataPortType ReceiveMetadataPort;
        [Microsoft.XLANGs.BaseTypes.LogicalBindingAttribute()]
        [Microsoft.XLANGs.BaseTypes.PortAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.eImplements
        )]
        [Microsoft.XLANGs.Core.UserVariableAttribute("ReceiveDescMetaPort")]
        internal ReceiveDescMetaPortType ReceiveDescMetaPort;
        [Microsoft.XLANGs.BaseTypes.DirectBindingAttribute()]
        [Microsoft.XLANGs.BaseTypes.PortAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.eUses
        )]
        [Microsoft.XLANGs.Core.UserVariableAttribute("SendNotificationPort")]
        internal PeDALS.Orchestrations.SendNotificationPortType SendNotificationPort;
        [Microsoft.XLANGs.BaseTypes.DirectBindingAttribute()]
        [Microsoft.XLANGs.BaseTypes.PortAttribute(
            Microsoft.XLANGs.BaseTypes.EXLangSParameter.eUses
        )]
        [Microsoft.XLANGs.Core.UserVariableAttribute("SendManifestCompletePort")]
        internal PeDALS.Orchestrations.SendManifestCompletePortType SendManifestCompletePort;

        public static Microsoft.XLANGs.Core.PortInfo[] _portInfo = new Microsoft.XLANGs.Core.PortInfo[] {
            new Microsoft.XLANGs.Core.PortInfo(new Microsoft.XLANGs.Core.OperationInfo[] {PeDALS.Orchestrations.ReceiveManifestPortType.ReceiveManifest},
                                               typeof(GovernorSpeeches).GetField("ReceiveManifestPort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance),
                                               Microsoft.XLANGs.BaseTypes.Polarity.implements,
                                               false,
                                               Microsoft.XLANGs.Core.HashHelper.HashPort(typeof(GovernorSpeeches), "ReceiveManifestPort"),
                                               null),
            new Microsoft.XLANGs.Core.PortInfo(new Microsoft.XLANGs.Core.OperationInfo[] {PeDALS.Orchestrations.ReceiveMetadataPortType.ReceiveMetadata},
                                               typeof(GovernorSpeeches).GetField("ReceiveMetadataPort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance),
                                               Microsoft.XLANGs.BaseTypes.Polarity.implements,
                                               false,
                                               Microsoft.XLANGs.Core.HashHelper.HashPort(typeof(GovernorSpeeches), "ReceiveMetadataPort"),
                                               null),
            new Microsoft.XLANGs.Core.PortInfo(new Microsoft.XLANGs.Core.OperationInfo[] {ReceiveDescMetaPortType.ReceiveDescMeta},
                                               typeof(GovernorSpeeches).GetField("ReceiveDescMetaPort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance),
                                               Microsoft.XLANGs.BaseTypes.Polarity.implements,
                                               false,
                                               Microsoft.XLANGs.Core.HashHelper.HashPort(typeof(GovernorSpeeches), "ReceiveDescMetaPort"),
                                               null),
            new Microsoft.XLANGs.Core.PortInfo(new Microsoft.XLANGs.Core.OperationInfo[] {PeDALS.Orchestrations.SendNotificationPortType.SendNotification},
                                               typeof(GovernorSpeeches).GetField("SendNotificationPort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance),
                                               Microsoft.XLANGs.BaseTypes.Polarity.uses,
                                               false,
                                               Microsoft.XLANGs.Core.HashHelper.HashPort(typeof(GovernorSpeeches), "SendNotificationPort"),
                                               null),
            new Microsoft.XLANGs.Core.PortInfo(new Microsoft.XLANGs.Core.OperationInfo[] {PeDALS.Orchestrations.SendManifestCompletePortType.SendManifestComplete},
                                               typeof(GovernorSpeeches).GetField("SendManifestCompletePort", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance),
                                               Microsoft.XLANGs.BaseTypes.Polarity.uses,
                                               false,
                                               Microsoft.XLANGs.Core.HashHelper.HashPort(typeof(GovernorSpeeches), "SendManifestCompletePort"),
                                               null)
        };

        public override Microsoft.XLANGs.Core.PortInfo[] PortInformation
        {
            get { return _portInfo; }
        }

        static public System.Collections.Hashtable PortsInformation
        {
            get
            {
                System.Collections.Hashtable h = new System.Collections.Hashtable();
                h[_portInfo[0].Name] = _portInfo[0];
                h[_portInfo[1].Name] = _portInfo[1];
                h[_portInfo[2].Name] = _portInfo[2];
                h[_portInfo[3].Name] = _portInfo[3];
                h[_portInfo[4].Name] = _portInfo[4];
                return h;
            }
        }

        public static System.Type[] InvokedServicesTypes
        {
            get
            {
                return new System.Type[] {
                    // type of each service invoked by this service
                };
            }
        }

        public static System.Type[] CalledServicesTypes
        {
            get
            {
                return new System.Type[] {
                    typeof(PeDALS.Orchestrations.GetInitialValues),
                    typeof(PeDALS.Orchestrations.InsertAIP),
                    typeof(PeDALS.Orchestrations.SetInitialValues),
                    typeof(PeDALS.Orchestrations.SplitMetadataMessage)                    
                };
            }
        }

        public static System.Type[] ExecedServicesTypes
        {
            get
            {
                return new System.Type[] {
                };
            }
        }

        public static object[] StaticSubscriptionsInformation {
            get {
                return new object[3]{
                     new object[5] { _portInfo[0], 0, null , 0, true }
                    , new object[5] { _portInfo[1], 0, null , 0, true }
                    , new object[5] { _portInfo[2], 0, null , 0, true }
                };
            }
        }

        public static Microsoft.XLANGs.RuntimeTypes.Location[] __eventLocations = new Microsoft.XLANGs.RuntimeTypes.Location[] {
            new Microsoft.XLANGs.RuntimeTypes.Location(0, "00000000-0000-0000-0000-000000000000", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(1, "d3063067-c378-4e15-9e12-62439a950775", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(2, "d3063067-c378-4e15-9e12-62439a950775", 1, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(3, "769bd496-6592-40eb-869f-055a3c04fa0d", 2, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(4, "769bd496-6592-40eb-869f-055a3c04fa0d", 2, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(5, "30b94aa1-bd21-4e6d-aa48-66e39a03ff9e", 2, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(6, "00000000-0000-0000-0000-000000000000", 3, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(7, "00000000-0000-0000-0000-000000000000", 3, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(8, "fb1811d3-60f9-4d6d-a7a9-5163106d9e67", 3, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(9, "fb1811d3-60f9-4d6d-a7a9-5163106d9e67", 3, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(10, "30b94aa1-bd21-4e6d-aa48-66e39a03ff9e", 2, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(11, "1a91b4b4-44e9-477f-81ff-79d9519cc44f", 4, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(12, "1a91b4b4-44e9-477f-81ff-79d9519cc44f", 4, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(13, "24e94025-c384-4809-9d13-74a9979b161a", 4, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(14, "00000000-0000-0000-0000-000000000000", 5, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(15, "00000000-0000-0000-0000-000000000000", 5, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(16, "ed89fae3-035a-44a3-a989-14760c8bccd7", 5, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(17, "ed89fae3-035a-44a3-a989-14760c8bccd7", 5, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(18, "24e94025-c384-4809-9d13-74a9979b161a", 4, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(19, "8911c9c9-252b-4ff1-b2fc-661222a3942a", 6, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(20, "8911c9c9-252b-4ff1-b2fc-661222a3942a", 6, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(21, "0dd509a4-a3a9-49ba-accb-07d119ac8929", 6, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(22, "00000000-0000-0000-0000-000000000000", 7, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(23, "00000000-0000-0000-0000-000000000000", 7, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(24, "060002ea-0f57-4531-8438-49585c22276f", 7, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(25, "060002ea-0f57-4531-8438-49585c22276f", 7, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(26, "0dd509a4-a3a9-49ba-accb-07d119ac8929", 6, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(27, "7f73b6f9-43ec-4218-907b-6ff0bc4d2b12", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(28, "f680b770-392d-47ab-b30b-e0475e49c2b5", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(29, "00000000-0000-0000-0000-000000000000", 8, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(30, "0d23dc09-00fd-4f24-8116-c9558e5b7fc7", 8, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(31, "0d23dc09-00fd-4f24-8116-c9558e5b7fc7", 8, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(32, "ee7d4610-316e-465a-a187-075b2c6b5915", 8, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(33, "ee7d4610-316e-465a-a187-075b2c6b5915", 8, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(34, "f680b770-392d-47ab-b30b-e0475e49c2b5", 1, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(35, "9afe5004-c47c-4291-9bad-6417fca79b2d", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(36, "7f73b6f9-43ec-4218-907b-6ff0bc4d2b12", 1, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(37, "9a9e559a-485d-47b5-b46e-447888e81e24", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(38, "00000000-0000-0000-0000-000000000000", 9, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(39, "dbc5cf7a-7aa9-4050-ab0a-89cd9869aaad", 9, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(40, "dbc5cf7a-7aa9-4050-ab0a-89cd9869aaad", 9, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(41, "e0a2a27d-6279-4e86-a301-99a317c05697", 9, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(42, "00000000-0000-0000-0000-000000000000", 10, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(43, "fa0e5560-fc5e-4ac6-ac9a-c569a8c50fad", 10, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(44, "fa0e5560-fc5e-4ac6-ac9a-c569a8c50fad", 10, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(45, "00000000-0000-0000-0000-000000000000", 10, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(46, "ce597bc3-0ad8-42f6-a5fc-7bdf229495a1", 11, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(47, "98431d9c-336c-47aa-8700-30a19a3da7ef", 11, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(48, "ce597bc3-0ad8-42f6-a5fc-7bdf229495a1", 11, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(49, "3425ff58-47ca-4afb-a80e-c7332dd78045", 12, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(50, "15564c4f-0741-423e-9efb-f17cbf0bda19", 12, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(51, "3425ff58-47ca-4afb-a80e-c7332dd78045", 12, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(52, "e0a2a27d-6279-4e86-a301-99a317c05697", 9, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(53, "9a9e559a-485d-47b5-b46e-447888e81e24", 1, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(54, "403b0268-d83e-4fda-bb7f-5fe56bb900f7", 1, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(55, "00000000-0000-0000-0000-000000000000", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(56, "00000000-0000-0000-0000-000000000000", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(57, "9170bf69-36b0-49be-9896-89e33587b76a", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(58, "9170bf69-36b0-49be-9896-89e33587b76a", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(59, "428f9e66-3259-482f-bb76-afa98c2d3e06", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(60, "1bccd56f-ae5d-4d1f-b023-8580d47cc8ff", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(61, "00000000-0000-0000-0000-000000000000", 14, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(62, "00000000-0000-0000-0000-000000000000", 14, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(63, "474ac5d3-394d-4624-b9f3-ab4889def9c1", 14, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(64, "474ac5d3-394d-4624-b9f3-ab4889def9c1", 14, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(65, "1bccd56f-ae5d-4d1f-b023-8580d47cc8ff", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(66, "f27a06f6-e026-4b0c-b576-48021a3951a4", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(67, "00000000-0000-0000-0000-000000000000", 15, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(68, "00000000-0000-0000-0000-000000000000", 15, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(69, "d673c63b-35d8-4bec-a7fd-4c15ee50ba68", 15, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(70, "d673c63b-35d8-4bec-a7fd-4c15ee50ba68", 15, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(71, "18232c27-b4b4-40a5-93fb-38f4dc2ea7b6", 15, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(72, "e70eebac-11df-44d1-b95b-82d70212ecfb", 15, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(73, "00000000-0000-0000-0000-000000000000", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(74, "00000000-0000-0000-0000-000000000000", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(75, "686874e1-69e5-4cf7-a405-f1a1e4e3de36", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(76, "686874e1-69e5-4cf7-a405-f1a1e4e3de36", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(77, "b57395e1-64e1-4fab-a29c-05a91cf87930", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(78, "b57395e1-64e1-4fab-a29c-05a91cf87930", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(79, "5818b961-ab0b-4dc5-ac3e-dee032268d01", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(80, "5818b961-ab0b-4dc5-ac3e-dee032268d01", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(81, "a9a9ff78-931e-4f39-9c5b-a81b49484f07", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(82, "a9a9ff78-931e-4f39-9c5b-a81b49484f07", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(83, "2a1cd66f-f19b-4fb6-a034-779f82728188", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(84, "c6187f20-00fe-48ef-9f1c-35153b5b247e", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(85, "c6187f20-00fe-48ef-9f1c-35153b5b247e", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(86, "1766ed84-2388-458f-9ba2-3496445c4dec", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(87, "a5216cf3-1f19-465b-9963-db3ff325c55f", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(88, "a5216cf3-1f19-465b-9963-db3ff325c55f", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(89, "1766ed84-2388-458f-9ba2-3496445c4dec", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(90, "10adc7a7-521f-4e18-954d-d77873ef3b77", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(91, "10adc7a7-521f-4e18-954d-d77873ef3b77", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(92, "2a1cd66f-f19b-4fb6-a034-779f82728188", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(93, "7a1be33a-d170-49d8-b914-15f9539f3bca", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(94, "7a1be33a-d170-49d8-b914-15f9539f3bca", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(95, "e44fb85c-f0d0-40ba-9639-86b316f5af71", 16, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(96, "e44fb85c-f0d0-40ba-9639-86b316f5af71", 16, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(97, "e70eebac-11df-44d1-b95b-82d70212ecfb", 15, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(98, "18232c27-b4b4-40a5-93fb-38f4dc2ea7b6", 15, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(99, "f27a06f6-e026-4b0c-b576-48021a3951a4", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(100, "f302e551-0819-460d-8a45-cda108fc0e98", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(101, "f302e551-0819-460d-8a45-cda108fc0e98", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(102, "428f9e66-3259-482f-bb76-afa98c2d3e06", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(103, "f1fea58b-01b0-4ebd-ac91-86480dbcd379", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(104, "f1fea58b-01b0-4ebd-ac91-86480dbcd379", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(105, "891b7d93-eb0c-4709-a9b8-516cc8a1e28e", 13, true),
            new Microsoft.XLANGs.RuntimeTypes.Location(106, "891b7d93-eb0c-4709-a9b8-516cc8a1e28e", 13, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(107, "403b0268-d83e-4fda-bb7f-5fe56bb900f7", 1, false),
            new Microsoft.XLANGs.RuntimeTypes.Location(108, "00000000-0000-0000-0000-000000000000", 1, false)
        };

        public override Microsoft.XLANGs.RuntimeTypes.Location[] EventLocations
        {
            get { return __eventLocations; }
        }

        public static Microsoft.XLANGs.RuntimeTypes.EventData[] __eventData = new Microsoft.XLANGs.RuntimeTypes.EventData[] {
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Body),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Parallel),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Receive),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Scope),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Expression),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Expression),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Scope),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Parallel),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.If),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Construct),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Send),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Terminate),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.If),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Call),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Catch),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.Throw),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Catch),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.WhileBody),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.Start | Microsoft.XLANGs.RuntimeTypes.Operation.While),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.While),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.WhileBody),
            new Microsoft.XLANGs.RuntimeTypes.EventData( Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Body)
        };

        public static int[] __progressLocation0 = new int[] { 0,0,0,108,108,};
        public static int[] __progressLocation1 = new int[] { 0,0,1,3,2,2,27,27,27,28,28,28,34,35,35,36,37,37,37,53,54,54,54,107,108,108,108,108,};
        public static int[] __progressLocation2 = new int[] { 3,3,4,5,5,5,10,2,};
        public static int[] __progressLocation3 = new int[] { 8,8,8,8,9,9,9,9,9,};
        public static int[] __progressLocation4 = new int[] { 11,11,12,13,13,13,18,2,};
        public static int[] __progressLocation5 = new int[] { 16,16,16,16,17,17,17,17,17,};
        public static int[] __progressLocation6 = new int[] { 19,19,20,21,21,21,26,2,};
        public static int[] __progressLocation7 = new int[] { 24,24,24,24,25,25,25,25,25,};
        public static int[] __progressLocation8 = new int[] { 30,30,30,31,32,32,32,33,33,33,33,};
        public static int[] __progressLocation9 = new int[] { 39,39,39,40,41,41,41,52,52,52,52,};
        public static int[] __progressLocation10 = new int[] { 43,43,43,44,44,44,44,44,44,44,};
        public static int[] __progressLocation11 = new int[] { 46,46,47,47,48,48,};
        public static int[] __progressLocation12 = new int[] { 49,49,50,50,51,51,};
        public static int[] __progressLocation13 = new int[] { 57,57,57,57,58,59,59,59,60,60,60,65,66,66,66,99,100,100,101,102,102,102,103,103,104,105,105,105,106,106,106,106,};
        public static int[] __progressLocation14 = new int[] { 63,63,63,63,63,64,64,64,64,};
        public static int[] __progressLocation15 = new int[] { 69,69,69,69,70,70,71,71,72,72,72,97,98,98,98,98,};
        public static int[] __progressLocation16 = new int[] { 75,75,75,75,75,75,75,75,75,75,75,76,77,77,78,79,79,80,81,81,82,82,82,82,83,83,84,84,85,83,86,86,86,87,87,88,88,88,88,88,88,88,88,89,89,89,90,90,91,92,93,93,94,95,95,96,96,96,96,};

        public static int[][] __progressLocations = new int[17] [] {__progressLocation0,__progressLocation1,__progressLocation2,__progressLocation3,__progressLocation4,__progressLocation5,__progressLocation6,__progressLocation7,__progressLocation8,__progressLocation9,__progressLocation10,__progressLocation11,__progressLocation12,__progressLocation13,__progressLocation14,__progressLocation15,__progressLocation16};
        public override int[][] ProgressLocations {get {return __progressLocations;} }

        public Microsoft.XLANGs.Core.StopConditions segment0(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[0];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[0];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];

            switch (__seg__.Progress)
            {
            case 0:
                ReceiveManifestPort = new PeDALS.Orchestrations.ReceiveManifestPortType(0, this);
                SendNotificationPort = new PeDALS.Orchestrations.SendNotificationPortType(3, this);
                ReceiveMetadataPort = new PeDALS.Orchestrations.ReceiveMetadataPortType(1, this);
                ReceiveDescMetaPort = new ReceiveDescMetaPortType(2, this);
                SendManifestCompletePort = new PeDALS.Orchestrations.SendManifestCompletePortType(4, this);
                __ctx__.PrologueCompleted = true;
                __ctx0__.__subWrapper0 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[0], ReceiveManifestPort, this);
                __ctx0__.__subWrapper1 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[1], ReceiveMetadataPort, this);
                __ctx0__.__subWrapper2 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[2], ReceiveDescMetaPort, this);
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if ((stopOn & Microsoft.XLANGs.Core.StopConditions.Initialized) != 0)
                    return Microsoft.XLANGs.Core.StopConditions.Initialized;
                goto case 1;
            case 1:
                __ctx1__ = new __GovernorSpeeches_1(this);
                _stateMgrs[1] = __ctx1__;
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                __ctx0__.StartContext(__seg__, __ctx1__);
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 3:
                if (!__ctx0__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                __ctx1__.Finally();
                ServiceDone(__seg__, (Microsoft.XLANGs.Core.Context)_stateMgrs[0]);
                __ctx0__.OnCommit();
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            bool __condition__;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[1];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)_stateMgrs[8];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope37_6 __ctx6__ = (____scope37_6)_stateMgrs[6];
            ____scope36_5 __ctx5__ = (____scope36_5)_stateMgrs[5];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx1__.__descMetaCount = default(System.Int32);
                __ctx1__.__doc = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx1__.__seriesAcquisitionDir = default(System.String);
                __ctx1__.__superPackageId = default(System.String);
                __ctx1__.__seriesId = default(System.Int32);
                __ctx1__.__seriesAcquisitionId = default(System.Int32);
                __ctx1__.__metadataCount = default(System.Int32);
                __ctx1__.__manifestCount = default(System.Int32);
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[0],__eventData[0],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[1],__eventData[1],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx1__.__ReceivePortId = new Microsoft.XLANGs.Core.Correlation(this, 0, 0);
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                __seg__.RunSegments(new Microsoft.XLANGs.Core.Segment[] {_segments[2], _segments[4], _segments[6]}, this);
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 5:
                if ( !PreProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if (__ctx1__ != null && __ctx1__.__ReceivePortId != null)
                    __ctx1__.__ReceivePortId = null;
                if (ReceiveDescMetaPort != null)
                {
                    ReceiveDescMetaPort.Close(__ctx1__, __seg__);
                    ReceiveDescMetaPort = null;
                }
                if (ReceiveMetadataPort != null)
                {
                    ReceiveMetadataPort.Close(__ctx1__, __seg__);
                    ReceiveMetadataPort = null;
                }
                if (ReceiveManifestPort != null)
                {
                    ReceiveManifestPort.Close(__ctx1__, __seg__);
                    ReceiveManifestPort = null;
                }
                Tracker.FireEvent(__eventLocations[2],__eventData[7],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 6;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[27],__eventData[8],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 7;
            case 7:
                __condition__ = __ctx1__.__manifestCount == __ctx1__.__metadataCount && __ctx1__.__manifestCount == __ctx1__.__descMetaCount;
                if (!__condition__)
                {
                    if ( !PostProgressInc( __seg__, __ctx__, 9 ) )
                        return Microsoft.XLANGs.Core.StopConditions.Paused;
                    goto case 9;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 8;
            case 8:
                if ( !PostProgressInc( __seg__, __ctx__, 15 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 15;
            case 9:
                if ( !PreProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[28],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 10;
            case 10:
                __ctx5__ = new ____scope36_5(this);
                _stateMgrs[5] = __ctx5__;
                if ( !PostProgressInc( __seg__, __ctx__, 11 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 11;
            case 11:
                __ctx1__.StartContext(__seg__, __ctx5__);
                if ( !PostProgressInc( __seg__, __ctx__, 12 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 12:
                if ( !PreProgressInc( __seg__, __ctx__, 13 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[34],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx5__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 13;
            case 13:
                if ( !PreProgressInc( __seg__, __ctx__, 14 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[35],__eventData[11],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 14;
            case 14:
                RequestTerminate(__ctx1__,"Terminated due to count mismatch.");
                __seg__.SegmentDone();
                break;
            case 15:
                if ( !PreProgressInc( __seg__, __ctx__, 16 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if (SendNotificationPort != null)
                {
                    SendNotificationPort.Close(__ctx1__, __seg__);
                    SendNotificationPort = null;
                }
                Tracker.FireEvent(__eventLocations[36],__eventData[12],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 16;
            case 16:
                if ( !PreProgressInc( __seg__, __ctx__, 17 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[37],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 17;
            case 17:
                __ctx6__ = new ____scope37_6(this);
                _stateMgrs[6] = __ctx6__;
                if ( !PostProgressInc( __seg__, __ctx__, 18 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 18;
            case 18:
                __ctx1__.StartContext(__seg__, __ctx6__);
                if ( !PostProgressInc( __seg__, __ctx__, 19 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 19:
                if ( !PreProgressInc( __seg__, __ctx__, 20 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[53],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx6__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 20;
            case 20:
                if ( !PreProgressInc( __seg__, __ctx__, 21 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[54],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 21;
            case 21:
                __ctx8__ = new __SplitFilesTransaction_8(this);
                _stateMgrs[8] = __ctx8__;
                if ( !PostProgressInc( __seg__, __ctx__, 22 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 22;
            case 22:
                __ctx1__.StartContext(__seg__, __ctx8__);
                if ( !PostProgressInc( __seg__, __ctx__, 23 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 23:
                if ( !PreProgressInc( __seg__, __ctx__, 24 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[107],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx8__.Finally();
                if (__ctx8__ != null && __ctx8__.__ManifestCompleteMsg != null)
                {
                    __ctx8__.UnrefMessage(__ctx8__.__ManifestCompleteMsg);
                    __ctx8__.__ManifestCompleteMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__ManifestCompleteMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestCompleteMsg);
                    __ctx1__.__ManifestCompleteMsg = null;
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 24;
            case 24:
                if ( !PreProgressInc( __seg__, __ctx__, 25 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[108],__eventData[22],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 25;
            case 25:
                if (!__ctx1__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 26 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 26;
            case 26:
                if ( !PreProgressInc( __seg__, __ctx__, 27 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx1__.OnCommit();
                goto case 27;
            case 27:
                __seg__.SegmentDone();
                _segments[0].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment2(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Envelope __msgEnv__ = null;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[2];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope33_2 __ctx2__ = (____scope33_2)_stateMgrs[2];

            switch (__seg__.Progress)
            {
            case 0:
                if ( !PreProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[3],__eventData[2],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 1;
            case 1:
                if (!ReceiveManifestPort.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if (__ctx1__.__ManifestMsg != null)
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestMsg);
                __ctx1__.__ManifestMsg = new PeDALS.Orchestrations.ManifestMessageType("ManifestMsg", __ctx1__);
                __ctx1__.RefMessage(__ctx1__.__ManifestMsg);
                ReceiveManifestPort.ReceiveMessage(0, __msgEnv__, __ctx1__.__ManifestMsg, new Microsoft.XLANGs.Core.Correlation[] { __ctx1__.__ReceivePortId }, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__);
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive);
                    __edata.Messages.Add(__ctx1__.__ManifestMsg);
                    __edata.PortName = @"ReceiveManifestPort";
                    Tracker.FireEvent(__eventLocations[4],__edata,_stateMgrs[1].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[5],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                __ctx2__ = new ____scope33_2(this);
                _stateMgrs[2] = __ctx2__;
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                __ctx1__.StartContext(__seg__, __ctx2__);
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[10],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx2__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 7;
            case 7:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment3(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[3];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[2];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            ____scope33_2 __ctx2__ = (____scope33_2)_stateMgrs[2];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx2__.__manifestXml = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx2__.__manifestXml.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[8],__eventData[4],_stateMgrs[2].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx2__.__manifestXml.UnderlyingXmlDocument = __ctx1__.__ManifestMsg.Body.TypedValue;
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[9],__eventData[5],_stateMgrs[2].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx1__.__manifestCount = PeDALS.Utilities.XmlHelper.GetNodeCount((System.Xml.XmlDocument)__ctx2__.__manifestXml.UnderlyingXmlDocument, "/*[local-name()='manifest' and namespace-uri()='']/*[local-name()='file' and namespace-uri()='']");
                if (__ctx2__ != null)
                    __ctx2__.__manifestXml = null;
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                if (!__ctx2__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx2__.OnCommit();
                goto case 8;
            case 8:
                __seg__.SegmentDone();
                _segments[2].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment4(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Envelope __msgEnv__ = null;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[4];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope34_3 __ctx3__ = (____scope34_3)_stateMgrs[3];

            switch (__seg__.Progress)
            {
            case 0:
                if ( !PreProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[11],__eventData[2],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 1;
            case 1:
                if (!ReceiveMetadataPort.GetMessageId(__ctx0__.__subWrapper1.getSubscription(this), __seg__, __ctx1__, out __msgEnv__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if (__ctx1__.__MetadataMsg != null)
                    __ctx1__.UnrefMessage(__ctx1__.__MetadataMsg);
                __ctx1__.__MetadataMsg = new PeDALS.Orchestrations.MetadataMessageType("MetadataMsg", __ctx1__);
                __ctx1__.RefMessage(__ctx1__.__MetadataMsg);
                ReceiveMetadataPort.ReceiveMessage(0, __msgEnv__, __ctx1__.__MetadataMsg, new Microsoft.XLANGs.Core.Correlation[] { __ctx1__.__ReceivePortId }, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__);
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive);
                    __edata.Messages.Add(__ctx1__.__MetadataMsg);
                    __edata.PortName = @"ReceiveMetadataPort";
                    Tracker.FireEvent(__eventLocations[12],__edata,_stateMgrs[1].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[13],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                __ctx3__ = new ____scope34_3(this);
                _stateMgrs[3] = __ctx3__;
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                __ctx1__.StartContext(__seg__, __ctx3__);
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[18],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx3__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 7;
            case 7:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment5(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[5];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[3];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            ____scope34_3 __ctx3__ = (____scope34_3)_stateMgrs[3];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx3__.__metadataXml = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx3__.__metadataXml.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[16],__eventData[4],_stateMgrs[3].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx3__.__metadataXml.UnderlyingXmlDocument = __ctx1__.__MetadataMsg.Body.TypedValue;
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[17],__eventData[5],_stateMgrs[3].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx1__.__metadataCount = PeDALS.Utilities.XmlHelper.GetNodeCount((System.Xml.XmlDocument)__ctx3__.__metadataXml.UnderlyingXmlDocument, "/*[local-name()='Object' and namespace-uri()='']/*[local-name()='Files' and namespace-uri()='']/*[local-name()='Folder' and namespace-uri()='']//*[local-name()='File' and namespace-uri()='']");
                if (__ctx3__ != null)
                    __ctx3__.__metadataXml = null;
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                if (!__ctx3__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx3__.OnCommit();
                goto case 8;
            case 8:
                __seg__.SegmentDone();
                _segments[4].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment6(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Envelope __msgEnv__ = null;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[6];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope35_4 __ctx4__ = (____scope35_4)_stateMgrs[4];

            switch (__seg__.Progress)
            {
            case 0:
                if ( !PreProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[19],__eventData[2],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 1;
            case 1:
                if (!ReceiveDescMetaPort.GetMessageId(__ctx0__.__subWrapper2.getSubscription(this), __seg__, __ctx1__, out __msgEnv__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if (__ctx1__.__GovSpeechRootMsg != null)
                    __ctx1__.UnrefMessage(__ctx1__.__GovSpeechRootMsg);
                __ctx1__.__GovSpeechRootMsg = new DescMetaMessageType("GovSpeechRootMsg", __ctx1__);
                __ctx1__.RefMessage(__ctx1__.__GovSpeechRootMsg);
                ReceiveDescMetaPort.ReceiveMessage(0, __msgEnv__, __ctx1__.__GovSpeechRootMsg, new Microsoft.XLANGs.Core.Correlation[] { __ctx1__.__ReceivePortId }, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__);
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive);
                    __edata.Messages.Add(__ctx1__.__GovSpeechRootMsg);
                    __edata.PortName = @"ReceiveDescMetaPort";
                    Tracker.FireEvent(__eventLocations[20],__edata,_stateMgrs[1].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[21],__eventData[3],_stateMgrs[1].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                __ctx4__ = new ____scope35_4(this);
                _stateMgrs[4] = __ctx4__;
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                __ctx1__.StartContext(__seg__, __ctx4__);
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[26],__eventData[6],_stateMgrs[1].TrackDataStream );
                __ctx4__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 7;
            case 7:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment7(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[7];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[4];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            ____scope35_4 __ctx4__ = (____scope35_4)_stateMgrs[4];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx4__.__GovSpeechRootXml = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx4__.__GovSpeechRootXml.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[24],__eventData[4],_stateMgrs[4].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx4__.__GovSpeechRootXml.UnderlyingXmlDocument = __ctx1__.__GovSpeechRootMsg.Body.TypedValue;
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[25],__eventData[5],_stateMgrs[4].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx1__.__descMetaCount = PeDALS.Utilities.XmlHelper.GetNodeCount((System.Xml.XmlDocument)__ctx4__.__GovSpeechRootXml.UnderlyingXmlDocument, "/*[local-name()='GovSpeechRoot' and namespace-uri()='']/*[local-name()='GovSpeech' and namespace-uri()='']");
                if (__ctx4__ != null)
                    __ctx4__.__GovSpeechRootXml = null;
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                if (!__ctx4__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx4__.OnCommit();
                goto case 8;
            case 8:
                __seg__.SegmentDone();
                _segments[6].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment8(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[8];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[5];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope36_5 __ctx5__ = (____scope36_5)_stateMgrs[5];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[30],__eventData[9],_stateMgrs[5].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                {
                    __messagetype_System_Xml_XmlDocument __NotificationMsg = new __messagetype_System_Xml_XmlDocument("NotificationMsg", __ctx5__);

                    __NotificationMsg.part.LoadFrom(new System.Xml.XmlDocument());
                    __NotificationMsg.part.TypedValue.LoadXml("<Notification><Type>Warning</Type><Metadata><ProvenanceId>" + (System.String)__ctx1__.__MetadataMsg.Body.GetDistinguishedField("Name") + "</ProvenanceId><SeriesId>" + System.Convert.ToString((System.Int32)__ctx1__.__MetadataMsg.Body.GetDistinguishedField("ID")) + "</SeriesId><SeriesAcquisitionId>" + System.Convert.ToString((System.Int32)__ctx1__.__MetadataMsg.Body.GetDistinguishedField("GroupIdentifier")) + "</SeriesAcquisitionId><ItemId>Unknown</ItemId></Metadata><Message>Shipping manifest, NZMetadataExtractor and Descriptive Metadata counts do not match.  Manifest Count = " + __ctx1__.__manifestCount.ToString() + ", Metadata Count = " + __ctx1__.__metadataCount.ToString() + " and Descriptive Metadata Count = " + __ctx1__.__descMetaCount.ToString() + ".</Message></Notification>");

                    if (__ctx5__.__NotificationMsg != null)
                        __ctx5__.UnrefMessage(__ctx5__.__NotificationMsg);
                    __ctx5__.__NotificationMsg = __NotificationMsg;
                    __ctx5__.RefMessage(__ctx5__.__NotificationMsg);
                }
                __ctx5__.__NotificationMsg.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx5__.__NotificationMsg);
                    Tracker.FireEvent(__eventLocations[31],__edata,_stateMgrs[5].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[32],__eventData[10],_stateMgrs[5].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                if (!__ctx5__.PrepareToPendingCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                SendNotificationPort.SendMessage(0, __ctx5__.__NotificationMsg, null, null, __ctx5__, __seg__ , Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists );
                if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingResp) != 0)
                    return Microsoft.XLANGs.Core.StopConditions.OutgoingResp;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Send);
                    __edata.Messages.Add(__ctx5__.__NotificationMsg);
                    __edata.PortName = @"SendNotificationPort";
                    Tracker.FireEvent(__eventLocations[33],__edata,_stateMgrs[5].TrackDataStream );
                }
                if (__ctx5__ != null && __ctx5__.__NotificationMsg != null)
                {
                    __ctx5__.UnrefMessage(__ctx5__.__NotificationMsg);
                    __ctx5__.__NotificationMsg = null;
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 8;
            case 8:
                if (!__ctx5__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 9;
            case 9:
                if ( !PreProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx5__.OnCommit();
                goto case 10;
            case 10:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment9(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[9];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[6];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            ____scope40_7 __ctx7__ = (____scope40_7)_stateMgrs[7];
            ____scope37_6 __ctx6__ = (____scope37_6)_stateMgrs[6];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[39],__eventData[13],_stateMgrs[6].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                {
                    Microsoft.XLANGs.Core.Service svc = new PeDALS.Orchestrations.GetInitialValues(12, InstanceId, this);
                    _stateMgrs[12] = svc;
                    __ctx6__.StartCall(__seg__, svc, __eventLocations[39],new object[] {new Microsoft.XLANGs.Core.MessageTuple((Microsoft.XLANGs.Core.Context)_stateMgrs[1], null), __ctx1__.__MetadataMsg});
                }
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[12]).Args;
                    __ctx1__.__BaseAipMsg = (PeDALS.Orchestrations.AIPMessageType)((Microsoft.XLANGs.Core.MessageTuple)(args[0])).message;
                    __ctx1__.__BaseAipMsg.MessageName = "BaseAipMsg";
                }
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call);
                    __edata.Messages.Add(__ctx1__.__BaseAipMsg);
                    __edata.Messages.Add(__ctx1__.__MetadataMsg);
                    Tracker.FireEvent(__eventLocations[40],__edata,_stateMgrs[6].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[41],__eventData[3],_stateMgrs[6].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx7__ = new ____scope40_7(this);
                _stateMgrs[7] = __ctx7__;
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                __ctx6__.StartContext(__seg__, __ctx7__);
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[52],__eventData[6],_stateMgrs[6].TrackDataStream );
                __ctx7__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 8;
            case 8:
                if (!__ctx6__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 9;
            case 9:
                if ( !PreProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx6__.OnCommit();
                goto case 10;
            case 10:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment10(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[10];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[7];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            ____scope40_7 __ctx7__ = (____scope40_7)_stateMgrs[7];
            ____scope37_6 __ctx6__ = (____scope37_6)_stateMgrs[6];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[43],__eventData[4],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                __ctx1__.__superPackageId = (System.String)__ctx1__.__BaseAipMsg.Body.GetDistinguishedField("SuperPackageId");
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[44],__eventData[5],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                __ctx1__.__seriesId = (System.Int32)__ctx1__.__BaseAipMsg.Body.GetDistinguishedField("CoreMetadata.Provenance.Series.SeriesId");
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                __ctx1__.__seriesAcquisitionId = (System.Int32)__ctx1__.__BaseAipMsg.Body.GetDistinguishedField("CoreMetadata.Provenance.Series.Acquisition.SeriesAcquisitionId");
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                __ctx1__.__seriesAcquisitionDir = (System.String)__ctx1__.__BaseAipMsg.Body.GetDistinguishedField("CoreMetadata.Provenance.Series.Acquisition.SeriesAcquisitionDirectory");
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if (!__ctx7__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 8;
            case 8:
                if ( !PreProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx7__.OnCommit();
                goto case 9;
            case 9:
                __seg__.SegmentDone();
                _segments[9].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment11(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[11];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[7];
            ____scope40_7 __ctx7__ = (____scope40_7)_stateMgrs[7];

            switch (__seg__.Progress)
            {
            case 0:
                OnBeginCatchHandler(7);
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[46],__eventData[15],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[47],__eventData[16],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                throw new System.ApplicationException("Missing data returned from database.  ItemId and SourcePath could not be set.  Are you sure the ProvenanceId, SeriesId, and SeriesAcquisitionId exists?", __ctx7__.__ex_0);
                if (__ctx7__ != null)
                    __ctx7__.__ex_0 = null;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[48],__eventData[17],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx7__.__exv__ = null;
                OnEndCatchHandler(7, __seg__);
                __seg__.SegmentDone();
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment12(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[12];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[7];
            ____scope40_7 __ctx7__ = (____scope40_7)_stateMgrs[7];

            switch (__seg__.Progress)
            {
            case 0:
                OnBeginCatchHandler(7);
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                if ( !PreProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[49],__eventData[15],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[50],__eventData[16],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                throw new System.ApplicationException("Malformed data.  Is series acquisition id in an integer format?", __ctx7__.__ex_1);
                if (__ctx7__ != null)
                    __ctx7__.__ex_1 = null;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[51],__eventData[17],_stateMgrs[7].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx7__.__exv__ = null;
                OnEndCatchHandler(7, __seg__);
                __seg__.SegmentDone();
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment13(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            bool __condition__;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[13];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[8];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)_stateMgrs[8];
            __GovernorSpeeches_root_0 __ctx0__ = (__GovernorSpeeches_root_0)_stateMgrs[0];
            ____scope41_9 __ctx9__ = (____scope41_9)_stateMgrs[9];
            __SplitMetadataTransaction_10 __ctx10__ = (__SplitMetadataTransaction_10)_stateMgrs[10];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx8__.__recCount = default(System.Int32);
                __ctx8__.__ManifestCompleteMsg = __ctx1__.__ManifestCompleteMsg;
                if (__ctx8__.__ManifestCompleteMsg != null)
                    __ctx8__.RefMessage(__ctx8__.__ManifestCompleteMsg);
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx8__.__recCount = 1;
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[57],__eventData[4],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx8__.__recCount = 1;
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[58],__eventData[5],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                if ( !PreProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[59],__eventData[18],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 6;
            case 6:
                __condition__ = __ctx8__.__recCount <= __ctx1__.__manifestCount;
                if (!__condition__)
                {
                    if ( !PostProgressInc( __seg__, __ctx__, 21 ) )
                        return Microsoft.XLANGs.Core.StopConditions.Paused;
                    goto case 21;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[59],__eventData[19],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 8;
            case 8:
                if ( !PreProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[60],__eventData[3],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 9;
            case 9:
                __ctx9__ = new ____scope41_9(this);
                _stateMgrs[9] = __ctx9__;
                if ( !PostProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 10;
            case 10:
                __ctx8__.StartContext(__seg__, __ctx9__);
                if ( !PostProgressInc( __seg__, __ctx__, 11 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 11:
                if ( !PreProgressInc( __seg__, __ctx__, 12 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[65],__eventData[6],_stateMgrs[8].TrackDataStream );
                __ctx9__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 12;
            case 12:
                if ( !PreProgressInc( __seg__, __ctx__, 13 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[66],__eventData[3],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 13;
            case 13:
                __ctx10__ = new __SplitMetadataTransaction_10(this);
                _stateMgrs[10] = __ctx10__;
                if ( !PostProgressInc( __seg__, __ctx__, 14 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 14;
            case 14:
                __ctx8__.StartContext(__seg__, __ctx10__);
                if ( !PostProgressInc( __seg__, __ctx__, 15 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 15:
                if ( !PreProgressInc( __seg__, __ctx__, 16 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[99],__eventData[6],_stateMgrs[8].TrackDataStream );
                __ctx10__.Finally();
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 16;
            case 16:
                if ( !PreProgressInc( __seg__, __ctx__, 17 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[100],__eventData[4],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 17;
            case 17:
                __ctx8__.__recCount = __ctx8__.__recCount + 1;
                if ( !PostProgressInc( __seg__, __ctx__, 18 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 18;
            case 18:
                if ( !PreProgressInc( __seg__, __ctx__, 19 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[101],__eventData[5],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 19;
            case 19:
                if ( !PreProgressInc( __seg__, __ctx__, 20 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[102],__eventData[20],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 20;
            case 20:
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 21:
                if ( !PreProgressInc( __seg__, __ctx__, 22 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if (__ctx1__ != null && __ctx1__.__GovSpeechRootMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__GovSpeechRootMsg);
                    __ctx1__.__GovSpeechRootMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__MetadataMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__MetadataMsg);
                    __ctx1__.__MetadataMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__ManifestMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__ManifestMsg);
                    __ctx1__.__ManifestMsg = null;
                }
                if (__ctx1__ != null && __ctx1__.__BaseAipMsg != null)
                {
                    __ctx1__.UnrefMessage(__ctx1__.__BaseAipMsg);
                    __ctx1__.__BaseAipMsg = null;
                }
                Tracker.FireEvent(__eventLocations[102],__eventData[21],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 22;
            case 22:
                if ( !PreProgressInc( __seg__, __ctx__, 23 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[103],__eventData[9],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 23;
            case 23:
                {
                    PeDALS.Orchestrations.ManifestCompleteMessageType __ManifestCompleteMsg = new PeDALS.Orchestrations.ManifestCompleteMessageType("ManifestCompleteMsg", __ctx8__);

                    __ctx1__.__doc.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                    __ctx1__.__doc.UnderlyingXmlDocument.LoadXml("<ns0:Manifest xmlns:ns0=\"http://PeDALS\"" + " SeriesAcquisitionId=\"" + __ctx1__.__seriesAcquisitionId.ToString() + "\"" + " SeriesId=\"" + __ctx1__.__seriesId.ToString() + "\"" + " SuperPackageId=\"" + __ctx1__.__superPackageId + "\"" + " SeriesAcquisitionDir=\"" + __ctx1__.__seriesAcquisitionDir + "\"/>");
                    if (__ctx1__ != null)
                        __ctx1__.__superPackageId = null;
                    if (__ctx1__ != null)
                        __ctx1__.__seriesAcquisitionDir = null;
                    __ManifestCompleteMsg.Body.LoadFrom((System.Xml.XmlDocument)__ctx1__.__doc.UnderlyingXmlDocument);
                    if (__ctx1__ != null)
                        __ctx1__.__doc = null;

                    if (__ctx8__.__ManifestCompleteMsg != null)
                        __ctx8__.UnrefMessage(__ctx8__.__ManifestCompleteMsg);
                    __ctx8__.__ManifestCompleteMsg = __ManifestCompleteMsg;
                    __ctx8__.RefMessage(__ctx8__.__ManifestCompleteMsg);
                }
                __ctx8__.__ManifestCompleteMsg.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 24 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 24;
            case 24:
                if ( !PreProgressInc( __seg__, __ctx__, 25 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx8__.__ManifestCompleteMsg);
                    Tracker.FireEvent(__eventLocations[104],__edata,_stateMgrs[8].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 25;
            case 25:
                if ( !PreProgressInc( __seg__, __ctx__, 26 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[105],__eventData[10],_stateMgrs[8].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 26;
            case 26:
                if (!__ctx8__.PrepareToPendingCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 27 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 27;
            case 27:
                if ( !PreProgressInc( __seg__, __ctx__, 28 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                SendManifestCompletePort.SendMessage(0, __ctx8__.__ManifestCompleteMsg, null, null, __ctx8__, __seg__ , Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists );
                if (SendManifestCompletePort != null)
                {
                    SendManifestCompletePort.Close(__ctx8__, __seg__);
                    SendManifestCompletePort = null;
                }
                if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0)
                    return Microsoft.XLANGs.Core.StopConditions.OutgoingRqst;
                goto case 28;
            case 28:
                if ( !PreProgressInc( __seg__, __ctx__, 29 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Send);
                    __edata.Messages.Add(__ctx8__.__ManifestCompleteMsg);
                    __edata.PortName = @"SendManifestCompletePort";
                    Tracker.FireEvent(__eventLocations[106],__edata,_stateMgrs[8].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 29;
            case 29:
                if (!__ctx8__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 30 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 30;
            case 30:
                if ( !PreProgressInc( __seg__, __ctx__, 31 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx8__.OnCommit();
                goto case 31;
            case 31:
                __seg__.SegmentDone();
                _segments[1].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment14(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[14];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[9];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)_stateMgrs[8];
            ____scope41_9 __ctx9__ = (____scope41_9)_stateMgrs[9];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx9__.__xmlManifest = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx9__.__xmlManifestFile = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx9__.__xmlManifest.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                __ctx9__.__xmlManifestFile.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 3;
            case 3:
                if ( !PreProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[63],__eventData[9],_stateMgrs[9].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 4;
            case 4:
                {
                    PeDALS.Orchestrations.ManifestFileMessageType __ManifestFileMsg = new PeDALS.Orchestrations.ManifestFileMessageType("ManifestFileMsg", __ctx8__);

                    __ctx9__.__xmlManifest.UnderlyingXmlDocument = __ctx1__.__ManifestMsg.Body.TypedValue;
                    __ctx9__.__xmlManifestFile.UnderlyingXmlDocument = PeDALS.Utilities.XmlHelper.GetNodeAsXML((System.Xml.XmlDocument)__ctx9__.__xmlManifest.UnderlyingXmlDocument, "/*[local-name()='manifest' and namespace-uri()='']/*[local-name()='file' and namespace-uri()=''][" + System.Convert.ToString(__ctx8__.__recCount) + "]");
                    if (__ctx9__ != null)
                        __ctx9__.__xmlManifest = null;
                    __ManifestFileMsg.Body.LoadFrom((System.Xml.XmlDocument)__ctx9__.__xmlManifestFile.UnderlyingXmlDocument);
                    if (__ctx9__ != null)
                        __ctx9__.__xmlManifestFile = null;

                    if (__ctx8__.__ManifestFileMsg != null)
                        __ctx8__.UnrefMessage(__ctx8__.__ManifestFileMsg);
                    __ctx8__.__ManifestFileMsg = __ManifestFileMsg;
                    __ctx8__.RefMessage(__ctx8__.__ManifestFileMsg);
                }
                __ctx8__.__ManifestFileMsg.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                if ( !PreProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx8__.__ManifestFileMsg);
                    Tracker.FireEvent(__eventLocations[64],__edata,_stateMgrs[9].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 6;
            case 6:
                if (!__ctx9__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                if ( !PreProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx9__.OnCommit();
                goto case 8;
            case 8:
                __seg__.SegmentDone();
                _segments[13].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment15(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            bool __condition__;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[15];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[10];
            __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)_stateMgrs[8];
            __CreateFinalAIPTransaction_11 __ctx11__ = (__CreateFinalAIPTransaction_11)_stateMgrs[11];
            __SplitMetadataTransaction_10 __ctx10__ = (__SplitMetadataTransaction_10)_stateMgrs[10];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx10__.__filePath = default(System.String);
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx10__.__filePath = "";
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                if ( !PreProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[69],__eventData[4],_stateMgrs[10].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 3;
            case 3:
                __ctx10__.__filePath = (System.String)__ctx8__.__ManifestFileMsg.Body.GetDistinguishedField("filename");
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                if ( !PreProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[70],__eventData[5],_stateMgrs[10].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 5;
            case 5:
                __ctx10__.__filePath = __ctx10__.__filePath.Trim();
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                if ( !PreProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[71],__eventData[8],_stateMgrs[10].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 7;
            case 7:
                __condition__ = __ctx10__.__filePath.EndsWith(".pdf");
                if (!__condition__)
                {
                    if ( !PostProgressInc( __seg__, __ctx__, 12 ) )
                        return Microsoft.XLANGs.Core.StopConditions.Paused;
                    goto case 12;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 8;
            case 8:
                if ( !PreProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[72],__eventData[3],_stateMgrs[10].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 9;
            case 9:
                __ctx11__ = new __CreateFinalAIPTransaction_11(this);
                _stateMgrs[11] = __ctx11__;
                if ( !PostProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 10;
            case 10:
                __ctx10__.StartContext(__seg__, __ctx11__);
                if ( !PostProgressInc( __seg__, __ctx__, 11 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 11:
                if ( !PreProgressInc( __seg__, __ctx__, 12 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[97],__eventData[6],_stateMgrs[10].TrackDataStream );
                __ctx11__.Finally();
                if (__ctx11__ != null)
                    __ctx11__.__filePath = null;
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 12;
            case 12:
                if ( !PreProgressInc( __seg__, __ctx__, 13 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if (__ctx10__ != null)
                    __ctx10__.__filePath = null;
                if (__ctx8__ != null && __ctx8__.__ManifestFileMsg != null)
                {
                    __ctx8__.UnrefMessage(__ctx8__.__ManifestFileMsg);
                    __ctx8__.__ManifestFileMsg = null;
                }
                Tracker.FireEvent(__eventLocations[98],__eventData[12],_stateMgrs[10].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 13;
            case 13:
                if (!__ctx10__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 14 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 14;
            case 14:
                if ( !PreProgressInc( __seg__, __ctx__, 15 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx10__.OnCommit();
                goto case 15;
            case 15:
                __seg__.SegmentDone();
                _segments[13].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }

        public Microsoft.XLANGs.Core.StopConditions segment16(Microsoft.XLANGs.Core.StopConditions stopOn)
        {
            bool __condition__;
            Microsoft.XLANGs.Core.Segment __seg__ = _segments[16];
            Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[11];
            __GovernorSpeeches_1 __ctx1__ = (__GovernorSpeeches_1)_stateMgrs[1];
            __SplitFilesTransaction_8 __ctx8__ = (__SplitFilesTransaction_8)_stateMgrs[8];
            __CreateFinalAIPTransaction_11 __ctx11__ = (__CreateFinalAIPTransaction_11)_stateMgrs[11];
            __SplitMetadataTransaction_10 __ctx10__ = (__SplitMetadataTransaction_10)_stateMgrs[10];

            switch (__seg__.Progress)
            {
            case 0:
                __ctx11__.__xmlGovSpeechRootMsg = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx11__.__fileName = default(System.String);
                __ctx11__.__orgFileAsBase64 = default(System.String);
                __ctx11__.__myXPath = default(System.String);
                __ctx11__.__xmlTemp = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx11__.__compCount = default(System.Int32);
                __ctx11__.__compFileName = default(System.String);
                __ctx11__.__compRecCount = default(System.Int32);
                __ctx11__.__compFileMainName = default(System.String);
                __ctx11__.__xmlAIP = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy();
                __ctx11__.__filePath = __ctx10__.__filePath;
                __ctx__.PrologueCompleted = true;
                if ( !PostProgressInc( __seg__, __ctx__, 1 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 1;
            case 1:
                __ctx11__.__xmlGovSpeechRootMsg.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 2 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 2;
            case 2:
                __ctx11__.__fileName = "";
                if ( !PostProgressInc( __seg__, __ctx__, 3 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 3;
            case 3:
                __ctx11__.__orgFileAsBase64 = "";
                if ( !PostProgressInc( __seg__, __ctx__, 4 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 4;
            case 4:
                __ctx11__.__myXPath = "";
                if ( !PostProgressInc( __seg__, __ctx__, 5 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 5;
            case 5:
                __ctx11__.__xmlTemp.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 6 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 6;
            case 6:
                __ctx11__.__compFileName = "";
                if ( !PostProgressInc( __seg__, __ctx__, 7 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 7;
            case 7:
                __ctx11__.__compFileMainName = "";
                if ( !PostProgressInc( __seg__, __ctx__, 8 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 8;
            case 8:
                __ctx11__.__xmlAIP.UnderlyingXmlDocument = new System.Xml.XmlDocument();
                if ( !PostProgressInc( __seg__, __ctx__, 9 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 9;
            case 9:
                if ( !PreProgressInc( __seg__, __ctx__, 10 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[75],__eventData[13],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 10;
            case 10:
                {
                    Microsoft.XLANGs.Core.Service svc = new PeDALS.Orchestrations.SplitMetadataMessage(13, InstanceId, this);
                    _stateMgrs[13] = svc;
                    __ctx11__.StartCall(__seg__, svc, __eventLocations[75],new object[] {new Microsoft.XLANGs.Core.MessageTuple((Microsoft.XLANGs.Core.Context)_stateMgrs[11], null), __ctx1__.__MetadataMsg, __ctx11__.__filePath});
                }
                if ( !PostProgressInc( __seg__, __ctx__, 11 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 11:
                if ( !PreProgressInc( __seg__, __ctx__, 12 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[13]).Args;
                    __ctx11__.__MetadataFileMsg = (PeDALS.Orchestrations.MetadataFileMessageType)((Microsoft.XLANGs.Core.MessageTuple)(args[0])).message;
                    __ctx11__.__MetadataFileMsg.MessageName = "MetadataFileMsg";
                }
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call);
                    __edata.Messages.Add(__ctx11__.__MetadataFileMsg);
                    __edata.Messages.Add(__ctx1__.__MetadataMsg);
                    Tracker.FireEvent(__eventLocations[76],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 12;
            case 12:
                if ( !PreProgressInc( __seg__, __ctx__, 13 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[77],__eventData[9],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 13;
            case 13:
                {
                    DescMetaItemMessageType __GovSpeechMsg = new DescMetaItemMessageType("GovSpeechMsg", __ctx11__);

                    __ctx11__.__fileName = __ctx11__.__filePath.Replace("data/", "");
                    __ctx11__.__xmlGovSpeechRootMsg.UnderlyingXmlDocument = __ctx1__.__GovSpeechRootMsg.Body.TypedValue;
                    __ctx11__.__xmlTemp.UnderlyingXmlDocument = PeDALS.Utilities.XmlHelper.GetNodeAsXML((System.Xml.XmlDocument)__ctx11__.__xmlGovSpeechRootMsg.UnderlyingXmlDocument, "//GovSpeech[Filename='" + __ctx11__.__fileName + "']");
                    if (__ctx11__ != null)
                        __ctx11__.__fileName = null;
                    if (__ctx11__ != null)
                        __ctx11__.__xmlGovSpeechRootMsg = null;
                    __GovSpeechMsg.Body.LoadFrom((System.Xml.XmlDocument)__ctx11__.__xmlTemp.UnderlyingXmlDocument);

                    if (__ctx11__.__GovSpeechMsg != null)
                        __ctx11__.UnrefMessage(__ctx11__.__GovSpeechMsg);
                    __ctx11__.__GovSpeechMsg = __GovSpeechMsg;
                    __ctx11__.RefMessage(__ctx11__.__GovSpeechMsg);
                }
                __ctx11__.__GovSpeechMsg.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 14 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 14;
            case 14:
                if ( !PreProgressInc( __seg__, __ctx__, 15 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx11__.__GovSpeechMsg);
                    Tracker.FireEvent(__eventLocations[78],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 15;
            case 15:
                if ( !PreProgressInc( __seg__, __ctx__, 16 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[79],__eventData[9],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 16;
            case 16:
                {
                    PeDALS.Orchestrations.AIPMessageType __FinalAIPMsg = new PeDALS.Orchestrations.AIPMessageType("FinalAIPMsg", __ctx11__);

                    ApplyTransform(typeof(PeDALS.Apps.NM.GS.XForm.BaseAIP_GovSpeech_MetadataFile_ManifestFile_To_FinalAIP), new object[] {__FinalAIPMsg.Body}, new object[] {__ctx1__.__BaseAipMsg.Body, __ctx11__.__GovSpeechMsg.Body, __ctx11__.__MetadataFileMsg.Body, __ctx8__.__ManifestFileMsg.Body});
                    __ctx11__.__orgFileAsBase64 = PeDALS.Utilities.Base64.Encode.PdfFile(__ctx1__.__seriesAcquisitionDir + "\\" + __ctx11__.__filePath);
                    __FinalAIPMsg.Body.XPathStore(__ctx11__.__xmlTemp.UnderlyingXmlDocument.OuterXml, "/*[local-name()='AIP' and namespace-uri()='http://PeDALS']/*[local-name()='OriginalMetadata' and namespace-uri()='']");
                    if (__ctx11__ != null)
                        __ctx11__.__xmlTemp = null;
                    __FinalAIPMsg.Body.XPathStore(__ctx11__.__orgFileAsBase64, "/*[local-name()='AIP' and namespace-uri()='http://PeDALS']/*[local-name()='OriginalRecord' and namespace-uri()='']");
                    if (__ctx11__ != null)
                        __ctx11__.__orgFileAsBase64 = null;

                    if (__ctx11__.__FinalAIPMsg != null)
                        __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsg);
                    __ctx11__.__FinalAIPMsg = __FinalAIPMsg;
                    __ctx11__.RefMessage(__ctx11__.__FinalAIPMsg);
                }
                __ctx11__.__FinalAIPMsg.ConstructionCompleteEvent(true);
                if ( !PostProgressInc( __seg__, __ctx__, 17 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 17;
            case 17:
                if ( !PreProgressInc( __seg__, __ctx__, 18 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx11__.__FinalAIPMsg);
                    __edata.Messages.Add(__ctx1__.__BaseAipMsg);
                    __edata.Messages.Add(__ctx11__.__GovSpeechMsg);
                    __edata.Messages.Add(__ctx11__.__MetadataFileMsg);
                    __edata.Messages.Add(__ctx8__.__ManifestFileMsg);
                    Tracker.FireEvent(__eventLocations[80],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (__ctx11__ != null && __ctx11__.__GovSpeechMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__GovSpeechMsg);
                    __ctx11__.__GovSpeechMsg = null;
                }
                if (__ctx11__ != null && __ctx11__.__MetadataFileMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__MetadataFileMsg);
                    __ctx11__.__MetadataFileMsg = null;
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 18;
            case 18:
                if ( !PreProgressInc( __seg__, __ctx__, 19 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[81],__eventData[4],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 19;
            case 19:
                __ctx11__.__compCount = 0;
                if ( !PostProgressInc( __seg__, __ctx__, 20 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 20;
            case 20:
                if ( !PreProgressInc( __seg__, __ctx__, 21 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[82],__eventData[5],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 21;
            case 21:
                __ctx11__.__compRecCount = 1;
                if ( !PostProgressInc( __seg__, __ctx__, 22 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 22;
            case 22:
                __ctx11__.__compCount = PeDALS.Utilities.XmlHelper.GetNodeCount(__ctx11__.__FinalAIPMsg.Body.TypedValue, "/*[local-name()='AIP' and namespace-uri()='http://PeDALS']/*[local-name()='CoreMetadata' and namespace-uri()='']/*[local-name()='Provenance' and namespace-uri()='']/*[local-name()='Series' and namespace-uri()='']/*[local-name()='Acquisition' and namespace-uri()='']/*[local-name()='Item' and namespace-uri()='']/*[local-name()='Component' and namespace-uri()='']");
                if ( !PostProgressInc( __seg__, __ctx__, 23 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 23;
            case 23:
                __ctx11__.__xmlAIP.UnderlyingXmlDocument = __ctx11__.__FinalAIPMsg.Body.TypedValue;
                if ( !PostProgressInc( __seg__, __ctx__, 24 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 24;
            case 24:
                if ( !PreProgressInc( __seg__, __ctx__, 25 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[83],__eventData[8],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 25;
            case 25:
                __condition__ = __ctx11__.__compCount == 0;
                if (!__condition__)
                {
                    if ( !PostProgressInc( __seg__, __ctx__, 30 ) )
                        return Microsoft.XLANGs.Core.StopConditions.Paused;
                    goto case 30;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 26 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 26;
            case 26:
                if ( !PreProgressInc( __seg__, __ctx__, 27 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[84],__eventData[9],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 27;
            case 27:
                {
                    PeDALS.Orchestrations.AIPMessageType __FinalAIPMsgWithComponents = new PeDALS.Orchestrations.AIPMessageType("FinalAIPMsgWithComponents", __ctx11__);

                    __FinalAIPMsgWithComponents.CopyFrom(__ctx11__.__FinalAIPMsg);

                    if (__ctx11__.__FinalAIPMsgWithComponents != null)
                        __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                    __ctx11__.__FinalAIPMsgWithComponents = __FinalAIPMsgWithComponents;
                    __ctx11__.RefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                }
                __ctx11__.__FinalAIPMsgWithComponents.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 28 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 28;
            case 28:
                if ( !PreProgressInc( __seg__, __ctx__, 29 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx11__.__FinalAIPMsgWithComponents);
                    Tracker.FireEvent(__eventLocations[85],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 29;
            case 29:
                if ( !PostProgressInc( __seg__, __ctx__, 49 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 49;
            case 30:
                if ( !PreProgressInc( __seg__, __ctx__, 31 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[86],__eventData[18],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 31;
            case 31:
                __condition__ = __ctx11__.__compRecCount <= __ctx11__.__compCount;
                if (!__condition__)
                {
                    if ( !PostProgressInc( __seg__, __ctx__, 45 ) )
                        return Microsoft.XLANGs.Core.StopConditions.Paused;
                    goto case 45;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 32 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 32;
            case 32:
                if ( !PreProgressInc( __seg__, __ctx__, 33 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[86],__eventData[19],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 33;
            case 33:
                if ( !PreProgressInc( __seg__, __ctx__, 34 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[87],__eventData[4],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 34;
            case 34:
                __ctx11__.__myXPath = System.String.Format("/*[local-name()='AIP' and namespace-uri()='http://PeDALS']/*[local-name()='CoreMetadata' and namespace-uri()='']/*[local-name()='Provenance' and namespace-uri()='']/*[local-name()='Series' and namespace-uri()='']/*[local-name()='Acquisition' and namespace-uri()='']/*[local-name()='Item' and namespace-uri()='']/*[local-name()='Component' and namespace-uri()=''][{0}]/@*[local-name()='FileName' and namespace-uri()='']", __ctx11__.__compRecCount);
                if ( !PostProgressInc( __seg__, __ctx__, 35 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 35;
            case 35:
                if ( !PreProgressInc( __seg__, __ctx__, 36 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[88],__eventData[5],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 36;
            case 36:
                __ctx11__.__compFileMainName = __ctx11__.__filePath.Replace(".pdf", "");
                if ( !PostProgressInc( __seg__, __ctx__, 37 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 37;
            case 37:
                __ctx11__.__compFileMainName = __ctx11__.__compFileMainName.Replace(@"\", @"/");
                if ( !PostProgressInc( __seg__, __ctx__, 38 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 38;
            case 38:
                __ctx11__.__compFileName = PeDALS.Utilities.XmlHelper.GetAnyTypeValue(__ctx11__.__FinalAIPMsg.Body.TypedValue, __ctx11__.__myXPath);
                if ( !PostProgressInc( __seg__, __ctx__, 39 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 39;
            case 39:
                __ctx11__.__compFileName = PeDALS.Utilities.FileHelper.GetFileNameFromPath(__ctx11__.__compFileMainName) + "-" + __ctx11__.__compFileName;
                if ( !PostProgressInc( __seg__, __ctx__, 40 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 40;
            case 40:
                __ctx11__.__myXPath = System.String.Format("/*[local-name()='AIP' and namespace-uri()='http://PeDALS']/*[local-name()='CoreMetadata' and namespace-uri()='']/*[local-name()='Provenance' and namespace-uri()='']/*[local-name()='Series' and namespace-uri()='']/*[local-name()='Acquisition' and namespace-uri()='']/*[local-name()='Item' and namespace-uri()='']/*[local-name()='Component' and namespace-uri()=''][{0}]", __ctx11__.__compRecCount);
                if ( !PostProgressInc( __seg__, __ctx__, 41 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 41;
            case 41:
                __ctx11__.__xmlAIP.UnderlyingXmlDocument = PeDALS.Utilities.XmlHelper.CreateAIPWithNZMEData((System.Xml.XmlDocument)__ctx11__.__xmlAIP.UnderlyingXmlDocument, __ctx11__.__myXPath, PeDALS.Utilities.XmlHelper.GetNZMEFileData(__ctx1__.__MetadataMsg.Body.TypedValue, "//File[Filename/Name='" + __ctx11__.__compFileName + "']", "Size"), PeDALS.Utilities.XmlHelper.GetNZMEFileData(__ctx1__.__MetadataMsg.Body.TypedValue, "//File[Filename/Name='" + __ctx11__.__compFileName + "']", "Extension"), PeDALS.Utilities.XmlHelper.GetNZMEFileData(__ctx1__.__MetadataMsg.Body.TypedValue, "//File[Filename/Name='" + __ctx11__.__compFileName + "']", "Format"));
                if ( !PostProgressInc( __seg__, __ctx__, 42 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 42;
            case 42:
                __ctx11__.__compRecCount = __ctx11__.__compRecCount + 1;
                if ( !PostProgressInc( __seg__, __ctx__, 43 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 43;
            case 43:
                if ( !PreProgressInc( __seg__, __ctx__, 44 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[89],__eventData[20],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 44;
            case 44:
                if ( !PostProgressInc( __seg__, __ctx__, 31 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 31;
            case 45:
                if ( !PreProgressInc( __seg__, __ctx__, 46 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[89],__eventData[21],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 46;
            case 46:
                if ( !PreProgressInc( __seg__, __ctx__, 47 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[90],__eventData[9],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 47;
            case 47:
                {
                    PeDALS.Orchestrations.AIPMessageType __FinalAIPMsgWithComponents = new PeDALS.Orchestrations.AIPMessageType("FinalAIPMsgWithComponents", __ctx11__);

                    __FinalAIPMsgWithComponents.Body.LoadFrom((System.Xml.XmlDocument)__ctx11__.__xmlAIP.UnderlyingXmlDocument);

                    if (__ctx11__.__FinalAIPMsgWithComponents != null)
                        __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                    __ctx11__.__FinalAIPMsgWithComponents = __FinalAIPMsgWithComponents;
                    __ctx11__.RefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                }
                __ctx11__.__FinalAIPMsgWithComponents.ConstructionCompleteEvent(false);
                if ( !PostProgressInc( __seg__, __ctx__, 48 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 48;
            case 48:
                if ( !PreProgressInc( __seg__, __ctx__, 49 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct);
                    __edata.Messages.Add(__ctx11__.__FinalAIPMsgWithComponents);
                    Tracker.FireEvent(__eventLocations[91],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 49;
            case 49:
                if ( !PreProgressInc( __seg__, __ctx__, 50 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                if (__ctx11__ != null)
                    __ctx11__.__xmlAIP = null;
                if (__ctx11__ != null)
                    __ctx11__.__compFileMainName = null;
                if (__ctx11__ != null)
                    __ctx11__.__compFileName = null;
                if (__ctx11__ != null)
                    __ctx11__.__myXPath = null;
                if (__ctx11__ != null && __ctx11__.__FinalAIPMsg != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsg);
                    __ctx11__.__FinalAIPMsg = null;
                }
                Tracker.FireEvent(__eventLocations[92],__eventData[12],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 50;
            case 50:
                if ( !PreProgressInc( __seg__, __ctx__, 51 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[93],__eventData[13],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 51;
            case 51:
                {
                    Microsoft.XLANGs.Core.Service svc = new PeDALS.Orchestrations.SetInitialValues(14, InstanceId, this);
                    _stateMgrs[14] = svc;
                    __ctx11__.StartCall(__seg__, svc, __eventLocations[93],new object[] {__ctx11__.__FinalAIPMsgWithComponents});
                }
                if ( !PostProgressInc( __seg__, __ctx__, 52 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 52:
                if ( !PreProgressInc( __seg__, __ctx__, 53 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                {
                    object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[14]).Args;
                }
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call);
                    __edata.Messages.Add(__ctx11__.__FinalAIPMsgWithComponents);
                    Tracker.FireEvent(__eventLocations[94],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 53;
            case 53:
                if ( !PreProgressInc( __seg__, __ctx__, 54 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                Tracker.FireEvent(__eventLocations[95],__eventData[13],_stateMgrs[11].TrackDataStream );
                if (IsDebugged)
                    return Microsoft.XLANGs.Core.StopConditions.InBreakpoint;
                goto case 54;
            case 54:
                {
                    Microsoft.XLANGs.Core.Service svc = new PeDALS.Orchestrations.InsertAIP(15, InstanceId, this);
                    _stateMgrs[15] = svc;
                    __ctx11__.StartCall(__seg__, svc, __eventLocations[95],new object[] {__ctx11__.__FinalAIPMsgWithComponents});
                }
                if ( !PostProgressInc( __seg__, __ctx__, 55 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                return Microsoft.XLANGs.Core.StopConditions.Blocked;
            case 55:
                {
                    object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[15]).Args;
                }
                {
                    Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call);
                    __edata.Messages.Add(__ctx11__.__FinalAIPMsgWithComponents);
                    Tracker.FireEvent(__eventLocations[96],__edata,_stateMgrs[11].TrackDataStream );
                }
                if (__ctx11__ != null && __ctx11__.__FinalAIPMsgWithComponents != null)
                {
                    __ctx11__.UnrefMessage(__ctx11__.__FinalAIPMsgWithComponents);
                    __ctx11__.__FinalAIPMsgWithComponents = null;
                }
                if ( !PostProgressInc( __seg__, __ctx__, 56 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 56;
            case 56:
                if (!__ctx11__.CleanupAndPrepareToCommit(__seg__))
                    return Microsoft.XLANGs.Core.StopConditions.Blocked;
                if ( !PostProgressInc( __seg__, __ctx__, 57 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                goto case 57;
            case 57:
                if ( !PreProgressInc( __seg__, __ctx__, 58 ) )
                    return Microsoft.XLANGs.Core.StopConditions.Paused;
                __ctx11__.OnCommit();
                goto case 58;
            case 58:
                __seg__.SegmentDone();
                _segments[15].PredecessorDone(this);
                break;
            }
            return Microsoft.XLANGs.Core.StopConditions.Completed;
        }
    }

    [System.SerializableAttribute]
    sealed public class __Microsoft_XLANGs_BaseTypes_Any__ : Microsoft.XLANGs.Core.XSDPart
    {
        private static Microsoft.XLANGs.BaseTypes.Any _schema = new Microsoft.XLANGs.BaseTypes.Any();

        public __Microsoft_XLANGs_BaseTypes_Any__(Microsoft.XLANGs.Core.XMessage msg, string name, int index) : base(msg, name, index) { }

        
        #region part reflection support
        public static Microsoft.XLANGs.BaseTypes.SchemaBase PartSchema { get { return (Microsoft.XLANGs.BaseTypes.SchemaBase)_schema; } }
        #endregion // part reflection support
    }

    [Microsoft.XLANGs.BaseTypes.MessageTypeAttribute(
        Microsoft.XLANGs.BaseTypes.EXLangSAccess.ePublic,
        Microsoft.XLANGs.BaseTypes.EXLangSMessageInfo.eThirdKind,
        "System.Xml.XmlDocument",
        new System.Type[]{
            typeof(Microsoft.XLANGs.BaseTypes.Any)
        },
        new string[]{
            "part"
        },
        new System.Type[]{
            typeof(__Microsoft_XLANGs_BaseTypes_Any__)
        },
        0,
        Microsoft.XLANGs.Core.XMessage.AnyMessageTypeName
    )]
    [System.SerializableAttribute]
    sealed public class __messagetype_System_Xml_XmlDocument : Microsoft.BizTalk.XLANGs.BTXEngine.BTXMessage
    {
        public __Microsoft_XLANGs_BaseTypes_Any__ part;

        private void __CreatePartWrappers()
        {
            part = new __Microsoft_XLANGs_BaseTypes_Any__(this, "part", 0);
            this.AddPart("part", 0, part);
        }

        public __messagetype_System_Xml_XmlDocument(string msgName, Microsoft.XLANGs.Core.Context ctx) : base(msgName, ctx)
        {
            __CreatePartWrappers();
        }
    }

    [Microsoft.XLANGs.BaseTypes.BPELExportableAttribute(false)]
    sealed public class _MODULE_PROXY_ { }
}
